Skip to content

Commit d66408e

Browse files
committed
Do not expose AODToHepMC.h to ROOT
This is needed to fix macOS builds. Apparently ROOT injects some arrow incompatible system headers in the chain.
1 parent b15719d commit d66408e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Generators/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,16 @@ if(pythia_FOUND)
104104
include/Generators/GeneratorFactory.h)
105105
endif()
106106

107+
list(APPEND root_headers ${headers})
107108
if(HepMC3_FOUND)
108109
list(APPEND headers include/Generators/GeneratorHepMC.h)
109110
list(APPEND headers include/Generators/GeneratorHepMCParam.h)
111+
list(APPEND root_headers include/Generators/GeneratorHepMC.h)
112+
list(APPEND root_headers include/Generators/GeneratorHepMCParam.h)
110113
list(APPEND headers include/Generators/AODToHepMC.h)
111114
endif()
112115

113-
o2_target_root_dictionary(Generators HEADERS ${headers})
116+
o2_target_root_dictionary(Generators HEADERS ${root_headers})
114117

115118
o2_add_test_root_macro(share/external/extgen.C
116119
PUBLIC_LINK_LIBRARIES O2::Generators FairRoot::Base

0 commit comments

Comments
 (0)