Skip to content
Snippets Groups Projects
Commit 34b29909 authored by Riccardo Maria Bianchi's avatar Riccardo Maria Bianchi :sunny:
Browse files

Fix HepMC3 support build

parent fe0f558d
No related branches found
No related tags found
No related merge requests found
...@@ -141,6 +141,15 @@ file(GLOB headers ${PROJECT_SOURCE_DIR}/inc/*.hh) ...@@ -141,6 +141,15 @@ file(GLOB headers ${PROJECT_SOURCE_DIR}/inc/*.hh)
#message("sources: ${sources}") # debug msg #message("sources: ${sources}") # debug msg
# Remove from the build HepMC3-related sources if that is not found
# TODO: remove these lines and put pre-comp fences with 'USE_HEPMC3' def
if( NOT HepMC3_FOUND)
file(GLOB hepmc3src ${PROJECT_SOURCE_DIR}/src/HepMC3*.cc)
#message("Removing those HepMC3-related sources: ${hepmc3src}") # debug msg
list(REMOVE_ITEM sources ${hepmc3src})
#message("new sources without HepMC3 support: ${sources}") # debug msg
endif()
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
# Add the executable, and link it to the Geant4 libraries # Add the executable, and link it to the Geant4 libraries
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment