Skip to content

Commit 31e0243

Browse files
aphecetchesawenzel
authored andcommitted
Proper protection in case BUILD_SIMULATION=OFF
1 parent 7ef9055 commit 31e0243

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

macro/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ o2_add_test_root_macro(
187187
O2::CPVSimulation
188188
O2::ZDCSimulation)
189189

190-
if(Geant4_FOUND)
190+
if(Geant4_FOUND AND BUILD_SIMULATION)
191191
o2_add_test_root_macro(o2sim.C
192192
PUBLIC_LINK_LIBRARIES O2::Generators
193193
O2::DetectorsPassive

0 commit comments

Comments
 (0)