From 441779de51ae2a42ed83ffb7ef9b2ceaf42683db Mon Sep 17 00:00:00 2001 From: zdenop Date: Sun, 17 Feb 2019 20:52:40 +0100 Subject: [PATCH] fix showing git tag for cmake build --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1f7a7f81..7d323fbb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()