1
0
mirror of https://git.familie-radermacher.ch/linux/ptouch-print.git synced 2025-05-13 23:32:59 +00:00

fix generation of version.h

This commit is contained in:
Dominic Radermacher 2021-10-11 10:36:58 +02:00
parent e3c0073466
commit a2d2548867

View File

@ -30,6 +30,9 @@ else()
string(STRIP "${GIT_COMMITS}" GIT_COMMITS) string(STRIP "${GIT_COMMITS}" GIT_COMMITS)
string(STRIP "${GIT_DIFF}" GIT_DIFF) string(STRIP "${GIT_DIFF}" GIT_DIFF)
string(STRIP "${GIT_TAG}" GIT_TAG) string(STRIP "${GIT_TAG}" GIT_TAG)
if (${GIT_COMMITS} STREQUAL ${GIT_TAG})
set(GIT_COMMITS "0")
endif()
endif() endif()
set(VERSION "const char* GIT_BRANCH=\"${GIT_BRANCH}\"; set(VERSION "const char* GIT_BRANCH=\"${GIT_BRANCH}\";