fix showing git tag for cmake build

This commit is contained in:
zdenop 2019-02-17 20:52:40 +01:00
parent a2481de926
commit 441779de51

View File

@ -50,7 +50,7 @@ if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.git)
OUTPUT_VARIABLE GIT_REV)
string(REGEX REPLACE "\n$" "" PACKAGE_VERSION "${GIT_REV}")
endif()
if(NOT EXISTS ${PACKAGE_VERSION})
if(NOT PACKAGE_VERSION)
set(PACKAGE_VERSION ${VERSION_PLAIN})
endif()