Skip to content

Commit

Permalink
Add REQUIRED in find_package (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell authored Oct 29, 2024
1 parent fe1623d commit ac694a3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ endif()

#- Dependencies ------------------------------------------------
find_package(ROOT COMPONENTS RIO Tree)
find_package(Gaudi)
find_package(k4FWCore)
find_package(EDM4HEP)
find_package(Gaudi REQUIRED)
find_package(k4FWCore REQUIRED)
find_package(EDM4HEP REQUIRED)

# use FindHEPPDT from Gaudi (used when finding heppdt later)
set(CMAKE_MODULE_PATH ${Gaudi_LIBRARY_DIR}/cmake/Gaudi/modules ${CMAKE_MODULE_PATH})
Expand Down
6 changes: 3 additions & 3 deletions k4Gen/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# Package: k4Gen
################################################################################

find_package(HepMC3)
find_package(HepMC3 REQUIRED)
find_package(Pythia8 COMPONENTS pythia8 pythia8tohepmc)
find_package(HepPDT)
find_package(EvtGen)
find_package(HepPDT REQUIRED)
find_package(EvtGen REQUIRED)

file(GLOB k4gen_plugin_sources src/components/*.cpp)
gaudi_add_module(k4Gen
Expand Down
2 changes: 1 addition & 1 deletion k4Gen/src/components/GenEventFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class GenEventFilter : public Gaudi::Algorithm {
"particles", Gaudi::DataHandle::Reader, this};
/// Writes out filter statistics.
MetaDataHandle<std::vector<int>> m_evtFilterStats{
edm4hep::EventFilterStats, Gaudi::DataHandle::Writer};
edm4hep::labels::EventFilterStats, Gaudi::DataHandle::Writer};

/// Rule to filter the events with.
Gaudi::Property<std::string> m_filterRuleStr{
Expand Down

0 comments on commit ac694a3

Please sign in to comment.