aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2014-09-15 23:04:58 +0200
committerRiccardo Spagni <ric@spagni.net>2014-09-15 23:04:58 +0200
commitde442fb9ad2a42687cd5254d218259327953b4e1 (patch)
tree41877af3483e28b36e0700f0e48f04b4993abf5f /src
parentMore robust versioning in CMake, plus comments (diff)
downloadmonero-de442fb9ad2a42687cd5254d218259327953b4e1.tar.xz
Prevent CMake choking on empty vars
Diffstat (limited to 'src')
-rw-r--r--src/version.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/version.cmake b/src/version.cmake
index 0d1e52a25..02f5ec0a6 100644
--- a/src/version.cmake
+++ b/src/version.cmake
@@ -40,6 +40,8 @@ if(RET)
else()
message(STATUS "You are currently on commit ${COMMIT}")
+ # Give our output variable a default value, because CMake likes to choke on empty variables
+ set(TAGGEDCOMMITOUT "a")
# Get all the tags
execute_process(COMMAND "${GIT}" show-ref --tags -d --abbrev RESULT_VARIABLE RET OUTPUT_VARIABLE TAGGEDCOMMITOUT OUTPUT_STRIP_TRAILING_WHITESPACE)