Skip to content
Snippets Groups Projects
Commit e570341c authored by Joseph Boudreau's avatar Joseph Boudreau
Browse files

This is a bugfix: the pythia dependency of fullSimLight is declared before...

This is a bugfix:  the pythia dependency of fullSimLight is declared before the target (fullSimLight) has been delclared
parent e416bc79
No related branches found
No related tags found
No related merge requests found
......@@ -57,12 +57,6 @@ find_package(Geant4 REQUIRED)
message( STATUS "Found Geant4: ${Geant4_INCLUDE_DIR}")
#----------------------------------------------------------------------------
# Support for the Pythia MC generator
find_package(Pythia QUIET) # optional
if(Pythia_FOUND)
target_compile_definitions(fullSimLight PRIVATE USE_PYTHIA)
target_link_libraries(fullSimLight PRIVATE Pythia::Pythia)
endif()
# Support for the HepMC3 exchange format
# This is ON by default, but it can be disabled by the user if not used/needed,
......@@ -145,6 +139,14 @@ add_executable(gmgeantino geantinoMaps.cc ${sources} ${headers})
add_executable(gm2gdml geoModel2GDML.cc ${sources} ${headers})
# Support for the Pythia MC generator
find_package(Pythia QUIET) # optional
if(Pythia_FOUND)
target_compile_definitions(fullSimLight PRIVATE USE_PYTHIA)
target_link_libraries(fullSimLight PRIVATE Pythia::Pythia)
endif()
#if(HEPMC3_ROOTIO_USE)
# message( STATUS "HEPMC3 Root Dependency Switched on")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment