diff options
author | luigi1111 <luigi1111w@gmail.com> | 2019-06-12 14:47:33 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2019-06-12 14:47:33 -0500 |
commit | 7b3df89bd4b7049ecb19171a271aa46d286c3bb5 (patch) | |
tree | 22b69ff282a31470f98ff5d8c280a0cd13a0532a /cmake/GenVersion.cmake | |
parent | Merge pull request #5552 (diff) | |
parent | Use 9 digit build IDs (diff) | |
download | monero-7b3df89bd4b7049ecb19171a271aa46d286c3bb5.tar.xz |
Merge pull request #5632
3a0fbea Don't use -march=native (hyc)
f8b2f25 Allow parallel make (hyc)
01ced20 Delete redundant cppzmq dependency (hyc)
1dc4ebf Use 9 digit build IDs (hyc)
Diffstat (limited to 'cmake/GenVersion.cmake')
-rw-r--r-- | cmake/GenVersion.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/GenVersion.cmake b/cmake/GenVersion.cmake index 1ea5b209c..b2ccfbc34 100644 --- a/cmake/GenVersion.cmake +++ b/cmake/GenVersion.cmake @@ -29,7 +29,7 @@ # Parts of this file are originally copyright (c) 2012-2013 The Cryptonote developers # Check what commit we're on -execute_process(COMMAND "${GIT}" rev-parse --short HEAD RESULT_VARIABLE RET OUTPUT_VARIABLE COMMIT OUTPUT_STRIP_TRAILING_WHITESPACE) +execute_process(COMMAND "${GIT}" rev-parse --short=9 HEAD RESULT_VARIABLE RET OUTPUT_VARIABLE COMMIT OUTPUT_STRIP_TRAILING_WHITESPACE) if(RET) # Something went wrong, set the version tag to -unknown @@ -38,6 +38,7 @@ if(RET) set(VERSIONTAG "unknown") configure_file("src/version.cpp.in" "${TO}") else() + string(SUBSTRING ${COMMIT} 0 9 COMMIT) message(STATUS "You are currently on commit ${COMMIT}") # Get all the tags |