aboutsummaryrefslogtreecommitdiff
path: root/src/version.cmake
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/version.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/version.cmake b/src/version.cmake
index 096492330..69890426b 100644
--- a/src/version.cmake
+++ b/src/version.cmake
@@ -7,7 +7,7 @@ if(RET)
else()
message(STATUS "You are currently on commit ${COMMIT}")
execute_process(COMMAND "${GIT}" show-ref --tags -d --abbrev COMMAND awk "END{print $1}" RESULT_VARIABLE RET OUTPUT_VARIABLE TAGGEDCOMMIT OUTPUT_STRIP_TRAILING_WHITESPACE)
- if(RET AND NOT ${TAGGEDCOMMIT} STREQUAL "")
+ if(RET AND NOT TAGGEDCOMMIT)
message(WARNING "Cannot determine most recent tag. Make sure that you are building either from a Git working tree or from a source archive.")
set(VERSIONTAG "${COMMIT}")
else()