Skip to content
Snippets Groups Projects
Commit 0645cb43 authored by Frank Gaede's avatar Frank Gaede
Browse files

- set default build type to RelWithDebInfo

   (overwrite w/ -D CMAKE_BUILD_TYPE=Debug, Release,...)
parent 1c8e109c
No related branches found
No related tags found
No related merge requests found
......@@ -28,8 +28,11 @@ option(DD4HEP_USE_XERCESC "Enable 'Detector Builders' based on XercesC" OFF)
option(DD4HEP_USE_PYROOT "Enable 'Detector Builders' based on PyROOT" OFF) # does not work (compile error)
option(DD4HEP_WITH_GEANT4 "Enable the simulation part based on Geant4" OFF)
#option(DD4HEP_WITH_LCIO "Build ILD examples with LCIO - builds LCIO as external project or uses pre-installed" ON)
#---------------------------------------------------------------------------------------
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
set (CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "One of: None Debug Release RelWithDebInfo MinSizeRel." FORCE)
endif()
#---DD4hep functions and macros -------------------------------------------------------
include(DD4hep)
......
......@@ -28,7 +28,10 @@ FIND_PATH( DD4hep_INCLUDE_DIRS
NO_DEFAULT_PATH
)
# ---------- default build type --------------------------------------------------------
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
set (CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "One of: None Debug Release RelWithDebInfo MinSizeRel." FORCE)
endif()
# ---------- libraries --------------------------------------------------------
# do not store find results in cache
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment