Skip to content

Commit 6e4be80

Browse files
Merge pull request #894 from SBNSoftware/bugfix/spack_patch
build changes for spack package
2 parents 0c2eb1f + e1aeb94 commit 6e4be80

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,8 @@ find_package( Eigen3 REQUIRED )
8888
find_package( Geant4 REQUIRED )
8989
find_package( Boost COMPONENTS system REQUIRED )
9090
find_package( ROOT REQUIRED )
91-
92-
if(DEFINED ENV{HEP_HPC_DIR} )
93-
find_ups_product( hdf5 )
94-
find_ups_product( hep_hpc )
95-
endif()
91+
find_package( hdf5 REQUIRED )
92+
find_package( hep_hpc REQUIRED )
9693

9794
# macros for dictionary and simple_plugin
9895
include(ArtDictionary)

sbndcode/Commissioning/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ cet_build_plugin(HitDumper art::module SOURCE HitDumper_module.cc LIBRARIES ${MO
5050
cet_build_plugin(MuonTrackFilter art::module SOURCE MuonTrackFilter_module.cc LIBRARIES ${MODULE_LIBRARIES})
5151
cet_build_plugin(MuonTrackProducer art::module SOURCE MuonTrackProducer_module.cc LIBRARIES ${MODULE_LIBRARIES})
5252
cet_build_plugin(OnlineEvd art::module SOURCE OnlineEvd_module.cc LIBRARIES ${MODULE_LIBRARIES})
53+
target_include_directories(sbndcode_Commissioning_OnlineEvd_module PRIVATE $ENV{HEP_HPC_INC})
5354

5455
install_source()
5556

0 commit comments

Comments
 (0)