From 3129d51eb4c62e37601f6624a96476305bc23191 Mon Sep 17 00:00:00 2001 From: Riccardo Spagni Date: Mon, 15 Sep 2014 08:22:52 +0200 Subject: [PATCH] ignore tag check if we haven't pulled tags Signed-off-by: Riccardo Spagni --- src/version.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()