Skip to content
Snippets Groups Projects
Commit 68e68546 authored by Markus Frank's avatar Markus Frank Committed by MarkusFrankATcernch
Browse files

Enable DDCMS for Geant4 builtin CLHEP

parent 10890c69
No related branches found
No related tags found
No related merge requests found
...@@ -23,13 +23,25 @@ ENDIF() ...@@ -23,13 +23,25 @@ ENDIF()
dd4hep_set_compiler_flags() dd4hep_set_compiler_flags()
#========================================================================== #==========================================================================
set (Geant4_builtin_clhep_FOUND ON)
# Configure Geant4
if(DD4HEP_USE_GEANT4)
find_package( Geant4 REQUIRED )
if(NOT Geant4_builtin_clhep_FOUND)
SET(DD4HEP_USE_CLHEP TRUE)
else()
include_directories(${Geant4_INCLUDE_DIRS})
endif()
dd4hep_print("|++> Setup Geant4 targets.")
DD4HEP_SETUP_GEANT4_TARGETS()
endif()
# CLHEP dependent stuff # CLHEP dependent stuff
if(NOT TARGET CLHEP::CLHEP) if(NOT TARGET CLHEP::CLHEP)
# ensure we only look for CLHEP once # ensure we only look for CLHEP once
find_package(CLHEP QUIET) find_package(CLHEP QUIET)
endif() endif()
if (TARGET CLHEP::CLHEP) if (TARGET CLHEP::CLHEP OR Geant4_builtin_clhep_FOUND)
dd4hep_print("|++> CLHEP PRESENT. Building DDCMS examples.") dd4hep_print("|++> CLHEP PRESENT. Building DDCMS examples.")
else() else()
dd4hep_print("|++> CLHEP is not present. NOT building DDCMS examples.") dd4hep_print("|++> CLHEP is not present. NOT building DDCMS examples.")
......
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