Skip to content

Commit 464b5ea

Browse files
aphecetchesawenzel
authored andcommitted
[CMake] Fix for ENABLE_UPGRADES=OFF
1 parent d223715 commit 464b5ea

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

macro/CMakeLists.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ o2_add_test_root_macro(analyzeOriginHits.C
107107
PUBLIC_LINK_LIBRARIES O2::SimulationDataFormat
108108
O2::DetectorsCommonDataFormats)
109109

110+
if(ENABLE_UPGRADES)
111+
set(upgradeTargets O2::Alice3DetectorsPassive O2::ITS3Simulation O2::TRKSimulation)
112+
endif()
113+
110114
o2_add_test_root_macro(build_geometry.C
111115
PUBLIC_LINK_LIBRARIES O2::DetectorsPassive
112116
O2::Field
@@ -125,9 +129,7 @@ o2_add_test_root_macro(build_geometry.C
125129
O2::PHOSSimulation
126130
O2::CPVSimulation
127131
O2::ZDCSimulation
128-
$<$<BOOL:${ENABLE_UPGRADES}>:O2::Alice3DetectorsPassive>
129-
$<$<BOOL:${ENABLE_UPGRADES}>:O2::ITS3Simulation>
130-
$<$<BOOL:${ENABLE_UPGRADES}>:O2::TRKSimulation>)
132+
${upgradeTargets})
131133

132134
o2_add_test_root_macro(checkTOFMatching.C
133135
PUBLIC_LINK_LIBRARIES O2::GlobalTracking

0 commit comments

Comments
 (0)