aboutsummaryrefslogtreecommitdiff
path: root/src/version.cmake
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2014-09-15 08:13:26 +0200
committerRiccardo Spagni <ric@spagni.net>2014-09-15 08:18:11 +0200
commitd97191d4f95a9fcbf154bcaed297daabd7cf691d (patch)
tree766a2f07063a01a4fe9e842b53d47c1bc0b1ef7e /src/version.cmake
parentFreeBSD static linking fixes (diff)
downloadmonero-d97191d4f95a9fcbf154bcaed297daabd7cf691d.tar.xz
new Makefile target: release-static
Diffstat (limited to 'src/version.cmake')
-rw-r--r--src/version.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/version.cmake b/src/version.cmake
index 090ca690b..096492330 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)
+ if(RET AND NOT ${TAGGEDCOMMIT} STREQUAL "")
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()