diff --git a/CMakeLists.txt b/CMakeLists.txt index 403af95fe..8df611ddd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -88,11 +88,8 @@ find_package( Eigen3 REQUIRED ) find_package( Geant4 REQUIRED ) find_package( Boost COMPONENTS system REQUIRED ) find_package( ROOT REQUIRED ) - -if(DEFINED ENV{HEP_HPC_DIR} ) - find_ups_product( hdf5 ) - find_ups_product( hep_hpc ) -endif() +find_package( hdf5 REQUIRED ) +find_package( hep_hpc REQUIRED ) # macros for dictionary and simple_plugin include(ArtDictionary) diff --git a/sbndcode/Commissioning/CMakeLists.txt b/sbndcode/Commissioning/CMakeLists.txt index 03777a97a..c3154622a 100644 --- a/sbndcode/Commissioning/CMakeLists.txt +++ b/sbndcode/Commissioning/CMakeLists.txt @@ -50,6 +50,7 @@ cet_build_plugin(HitDumper art::module SOURCE HitDumper_module.cc LIBRARIES ${MO cet_build_plugin(MuonTrackFilter art::module SOURCE MuonTrackFilter_module.cc LIBRARIES ${MODULE_LIBRARIES}) cet_build_plugin(MuonTrackProducer art::module SOURCE MuonTrackProducer_module.cc LIBRARIES ${MODULE_LIBRARIES}) cet_build_plugin(OnlineEvd art::module SOURCE OnlineEvd_module.cc LIBRARIES ${MODULE_LIBRARIES}) +target_include_directories(sbndcode_Commissioning_OnlineEvd_module PRIVATE $ENV{HEP_HPC_INC}) install_source()