Skip to content
Snippets Groups Projects
Commit 271a5672 authored by Andre Sailer's avatar Andre Sailer
Browse files

DDG4: enable building with geant4 internal CLHEP

parent a577fbc6
No related branches found
No related tags found
No related merge requests found
...@@ -126,6 +126,11 @@ add_subdirectory(DDDetectors) ...@@ -126,6 +126,11 @@ add_subdirectory(DDDetectors)
add_subdirectory(DDCond) add_subdirectory(DDCond)
add_subdirectory(DDAlign) add_subdirectory(DDAlign)
if ( DD4HEP_USE_GEANT4 ) if ( DD4HEP_USE_GEANT4 )
if(Geant4_builtin_clhep_FOUND)
set(CLHEP "")
else()
set(CLHEP CLHEP)
endif()
add_subdirectory(DDG4) add_subdirectory(DDG4)
endif() endif()
# Note the order: DDEve partially depends on variables from DDG4! # Note the order: DDEve partially depends on variables from DDG4!
......
...@@ -12,7 +12,7 @@ dd4hep_package( DDG4 ...@@ -12,7 +12,7 @@ dd4hep_package( DDG4
USES [GEANT4 REQUIRED COMPONENTS gdml ui_all vis_all] USES [GEANT4 REQUIRED COMPONENTS gdml ui_all vis_all]
[ROOT REQUIRED COMPONENTS Geom GenVector RIO] [ROOT REQUIRED COMPONENTS Geom GenVector RIO]
BOOST DDCore BOOST DDCore
OPTIONAL CLHEP [XercesC QUIET] OPTIONAL ${CLHEP} [XercesC QUIET]
INCLUDE_DIRS include INCLUDE_DIRS include
INSTALL_INCLUDES include/DDG4 ) INSTALL_INCLUDES include/DDG4 )
MESSAGE(STATUS "CLHEP_LIBRARIES ${CLHEP_LIBRARIES} ${CLHEP_LIBRARY}") MESSAGE(STATUS "CLHEP_LIBRARIES ${CLHEP_LIBRARIES} ${CLHEP_LIBRARY}")
......
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