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

CMake: fix using Geant4 internal clhep

the target is now(?) prefixed with Geant4:: otherwise we get a linking error
parent a39add61
No related branches found
No related tags found
No related merge requests found
...@@ -843,7 +843,11 @@ MACRO(DD4HEP_SETUP_GEANT4_TARGETS) ...@@ -843,7 +843,11 @@ MACRO(DD4HEP_SETUP_GEANT4_TARGETS)
PROPERTIES PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${Geant4_INCLUDE_DIRS}" INTERFACE_INCLUDE_DIRECTORIES "${Geant4_INCLUDE_DIRS}"
) )
TARGET_LINK_LIBRARIES(CLHEP::CLHEP INTERFACE G4clhep) if(TARGET Geant4::G4clhep)
TARGET_LINK_LIBRARIES(CLHEP::CLHEP INTERFACE Geant4::G4clhep)
else()
TARGET_LINK_LIBRARIES(CLHEP::CLHEP INTERFACE G4clhep)
endif()
else() else()
IF(NOT TARGET CLHEP::CLHEP) IF(NOT TARGET CLHEP::CLHEP)
......
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