Skip to content

Commit

Permalink
CMake: find clhep only via CONFIG mode
Browse files Browse the repository at this point in the history
  • Loading branch information
andresailer committed Aug 23, 2019
1 parent 1569bc2 commit b93ccca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ IF( MARLINTRK_USE_GEAR)
ENDIF(MARLINTRK_USE_GEAR)


FIND_PACKAGE( streamlog REQUIRED )
FIND_PACKAGE( streamlog REQUIRED )
INCLUDE_DIRECTORIES( SYSTEM ${streamlog_INCLUDE_DIRS} )
LINK_LIBRARIES( ${streamlog_LIBRARIES} )
Expand Down Expand Up @@ -80,8 +79,9 @@ INCLUDE_DIRECTORIES( SYSTEM ${DD4hep_INCLUDE_DIRS} )
LINK_LIBRARIES( ${DD4hep_LIBRARIES} ${DD4hep_COMPONENT_LIBRARIES} )
ADD_DEFINITIONS( ${DD4hep_DEFINITIONS} )


FIND_PACKAGE( CLHEP REQUIRED )
#DD4hep depends on geant4. geant4 calls find_package clhep internally and also contains a findclhep.cmake
# that findclhep cmake is not playing nice with other things
FIND_PACKAGE(CLHEP REQUIRED CONFIG)
INCLUDE_DIRECTORIES( SYSTEM ${CLHEP_INCLUDE_DIRS} )
LINK_LIBRARIES( ${CLHEP_LIBRARIES} )
ADD_DEFINITIONS( ${CLHEP_DEFINITIONS} )
Expand Down

0 comments on commit b93ccca

Please sign in to comment.