mirror of
https://git.familie-radermacher.ch/linux/ptouch-print.git
synced 2025-05-13 15:22:56 +00:00
fix generation of version.h
This commit is contained in:
parent
e3c0073466
commit
a2d2548867
@ -30,6 +30,9 @@ else()
|
||||
string(STRIP "${GIT_COMMITS}" GIT_COMMITS)
|
||||
string(STRIP "${GIT_DIFF}" GIT_DIFF)
|
||||
string(STRIP "${GIT_TAG}" GIT_TAG)
|
||||
if (${GIT_COMMITS} STREQUAL ${GIT_TAG})
|
||||
set(GIT_COMMITS "0")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set(VERSION "const char* GIT_BRANCH=\"${GIT_BRANCH}\";
|
||||
|
Loading…
Reference in New Issue
Block a user