fix generation of version.h

master
Dominic Radermacher 2021-10-11 10:36:58 +02:00
rodzic e3c0073466
commit a2d2548867
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -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}\";