mirror of
https://git.familie-radermacher.ch/linux/ptouch-print.git
synced 2025-12-18 05:45:21 +01:00
fix generation of version.h
This commit is contained in:
parent
e3c0073466
commit
a2d2548867
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue