diff --git a/Digitisers/DCHDigi/CMakeLists.txt b/Digitisers/DCHDigi/CMakeLists.txt index 33fa374effccc19a7fabd6fb841a3e34f368c067..8a2d36fd15e3745ff84e81ba21020839c8ed1634 100644 --- a/Digitisers/DCHDigi/CMakeLists.txt +++ b/Digitisers/DCHDigi/CMakeLists.txt @@ -1,5 +1,6 @@ gaudi_subdir(DCHDigi v0r0) +find_package(CLHEP REQUIRED;CONFIG) find_package(DD4hep COMPONENTS DDG4 REQUIRED) find_package(EDM4HEP REQUIRED ) message("EDM4HEP_INCLUDE_DIRS: ${EDM4HEP_INCLUDE_DIR}") @@ -18,8 +19,8 @@ gaudi_depends_on_subdirs( ) ## Modules gaudi_add_module(DCHDigi ${srcs} - INCLUDE_DIRS FWCore GaudiKernel GaudiAlgLib CLHEP DD4hep - LINK_LIBRARIES FWCore GaudiKernel GaudiAlgLib CLHEP DD4hep ${DD4hep_COMPONENT_LIBRARIES} DDRec + INCLUDE_DIRS FWCore GaudiKernel GaudiAlgLib ${CLHEP_INCLUDE_DIR} DD4hep + LINK_LIBRARIES FWCore GaudiKernel GaudiAlgLib ${CLHEP_LIBRARIES} DD4hep ${DD4hep_COMPONENT_LIBRARIES} DDRec -Wl,--no-as-needed EDM4HEP::edm4hep EDM4HEP::edm4hepDict )