1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
Author: Andreas Tille <tille@debian.org>
Last-Update: Mon, 21 Jan 2019 09:01:19 +0100
Description: Use cmake input file of Debian packaged gatb-core
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -28,20 +28,6 @@ IF (DEFINED JENKINS_TAG)
SET (gatb-tool-version ${JENKINS_TAG})
ENDIF()
-#############################
-# getting git version
-#from http://stackoverflow.com/questions/1435953/how-can-i-pass-git-sha1-to-compiler-as-definition-using-cmake
-exec_program(
- "git"
- ${CMAKE_CURRENT_SOURCE_DIR}
- ARGS "rev-parse --short HEAD"
- OUTPUT_VARIABLE VERSION_SHA1 )
-
-if ( VERSION_SHA1 MATCHES "^[0-9a-f]+$") # might return "git commit fatal: not a git repository"
- message("Git version: ${VERSION_SHA1}")
- add_definitions( -DGIT_SHA1="${VERSION_SHA1}" )
-endif()
-
################################################################################
# Define cmake modules directory
################################################################################
@@ -66,7 +52,7 @@ SET (GATB_CORE_EXCLUDE_TESTS 1)
SET (GATB_CORE_EXCLUDE_EXAMPLES 1)
# GATB CORE
-include (GatbCore)
+# include (GatbCore)
################################################################################
# TOOL
|