From a4dd79b24f0001a21fa4c33a0ffec30600e62314 Mon Sep 17 00:00:00 2001 From: Frank Gaede <frank.gaede@desy.de> Date: Thu, 19 Feb 2015 14:04:55 +0000 Subject: [PATCH] - add build name for cdash (distinguish DEbug and Release builts on the same machine) --- CMakeLists.txt | 3 +++ examples/CMakeLists.txt | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9aa3fea11..f447168b9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -83,6 +83,8 @@ if(BUILD_TESTING) enable_testing() add_subdirectory(DDTest) + set(BUILDNAME "${CMAKE_SYSTEM}-${CMAKE_CXX_COMPILER}-${CMAKE_BUILD_TYPE}" CACHE STRING "set build string for cdash") + endif(BUILD_TESTING) #---Documentation------------------------------------------------------------------- @@ -112,6 +114,7 @@ add_subdirectory(DDRec) add_subdirectory(DDEve) add_subdirectory(DDDetectors) + if(DD4HEP_USE_GEANT4) #--- create a geant4 variables for the thisdd4hep.sh script diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index b794abbb1..6f13bab24 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -21,7 +21,11 @@ option(BUILD_TESTING "Enable and build tests" ON) if(BUILD_TESTING) include(CTest) enable_testing() + +set(BUILDNAME "${CMAKE_SYSTEM}-${CMAKE_CXX_COMPILER}-${CMAKE_BUILD_TYPE}" CACHE STRING "set build string for cdash") + endif(BUILD_TESTING) + #---------------------------------------------------------------------------------- # # (un)comment as needed -- GitLab