Skip to content

Commit

Permalink
Do not expose AODToHepMC.h to ROOT
Browse files Browse the repository at this point in the history
This is needed to fix macOS builds. Apparently ROOT injects
some arrow incompatible system headers in the chain.
  • Loading branch information
ktf committed Nov 14, 2023
1 parent b15719d commit d66408e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Generators/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,16 @@ if(pythia_FOUND)
include/Generators/GeneratorFactory.h)
endif()

list(APPEND root_headers ${headers})
if(HepMC3_FOUND)
list(APPEND headers include/Generators/GeneratorHepMC.h)
list(APPEND headers include/Generators/GeneratorHepMCParam.h)
list(APPEND root_headers include/Generators/GeneratorHepMC.h)
list(APPEND root_headers include/Generators/GeneratorHepMCParam.h)
list(APPEND headers include/Generators/AODToHepMC.h)
endif()

o2_target_root_dictionary(Generators HEADERS ${headers})
o2_target_root_dictionary(Generators HEADERS ${root_headers})

o2_add_test_root_macro(share/external/extgen.C
PUBLIC_LINK_LIBRARIES O2::Generators FairRoot::Base
Expand Down

0 comments on commit d66408e

Please sign in to comment.