Skip to content

Commit 8b0a4b0

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 8b0a4b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Generators/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,10 @@ endif()
107107
if(HepMC3_FOUND)
108108
list(APPEND headers include/Generators/GeneratorHepMC.h)
109109
list(APPEND headers include/Generators/GeneratorHepMCParam.h)
110-
list(APPEND headers include/Generators/AODToHepMC.h)
111110
endif()
112111

113-
o2_target_root_dictionary(Generators HEADERS ${headers})
112+
o2_target_root_dictionary(Generators HEADERS ${headers}
113+
$<$<BOOL:${HepMC3_FOUND}>:include/Generators/AODToHepMC.h>)
114114

115115
o2_add_test_root_macro(share/external/extgen.C
116116
PUBLIC_LINK_LIBRARIES O2::Generators FairRoot::Base

0 commit comments

Comments
 (0)