aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2014-09-15 08:22:52 +0200
committerRiccardo Spagni <ric@spagni.net>2014-09-15 08:22:52 +0200
commit3129d51eb4c62e37601f6624a96476305bc23191 (patch)
treef26cfb54d171271fa60c15e56bc6f77d177b6a8c
parentMerge branch 'master' of http://github.com/fluffypony/bitmonero (diff)
downloadmonero-3129d51eb4c62e37601f6624a96476305bc23191.tar.xz
ignore tag check if we haven't pulled tags
Signed-off-by: Riccardo Spagni <ric@spagni.net>
-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()