Skip to content

Commit

Permalink
fix showing git tag for cmake build
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenop committed Feb 17, 2019
1 parent a2481de commit 441779d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -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()

Expand Down

0 comments on commit 441779d

Please sign in to comment.