aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2014-09-12 00:40:25 +0200
committerRiccardo Spagni <ric@spagni.net>2014-09-12 13:12:43 +0200
commit446a7ddc4940f89249bad8d3c0bb378ace9c8ee1 (patch)
treef47f53109d72c9bf41f3b39cc569a2e422d16ed2 /CMakeLists.txt
parentMerge pull request #129 from Jebes/master (diff)
downloadmonero-446a7ddc4940f89249bad8d3c0bb378ace9c8ee1.tar.xz
always check git diff
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 1 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e93c278da..237181253 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -160,13 +160,8 @@ elseif(NOT MSVC)
set(Boost_LIBRARIES "${Boost_LIBRARIES};rt;pthread")
endif()
-set(COMMIT_ID_IN_VERSION ON CACHE BOOL "Include commit ID in version")
file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/version")
-if (NOT COMMIT_ID_IN_VERSION)
- set(VERSION "${VERSION}-unknown")
- configure_file("src/version.h.in" "version/version.h")
- add_custom_target(version ALL)
-elseif(DEFINED COMMIT)
+if(DEFINED COMMIT)
string(REPLACE "." "\\." VERSION_RE "${VERSION}")
if(NOT REFS MATCHES "(\\(|, )tag: v${VERSION_RE}(\\)|, )")
set(VERSION "${VERSION}-g${COMMIT}")