@@ -65,6 +65,7 @@ option( TRACCC_BUILD_EXAMPLES "Build the examples of traccc" TRUE )
65
65
66
66
# Flags controlling what traccc should use.
67
67
option ( TRACCC_USE_SYSTEM_LIBS "Use system libraries be default" FALSE )
68
+ option ( TRACCC_USE_SPACK_LIBS "Use pack libraries by default" FALSE )
68
69
option ( TRACCC_USE_ROOT "Use ROOT in the build (if needed)" TRUE )
69
70
70
71
# Check CUDA and SYCL C++ standards
@@ -144,7 +145,7 @@ option( TRACCC_SETUP_EIGEN3
144
145
"Set up the Eigen3 target(s) explicitly" TRUE )
145
146
option ( TRACCC_USE_SYSTEM_EIGEN3
146
147
"Pick up an existing installation of Eigen3 from the build environment"
147
- ${TRACCC_USE_SYSTEM_LIBS} )
148
+ $< OR :$< BOOL : $ {TRACCC_USE_SYSTEM_LIBS}>,$< BOOL : ${TRACCC_USE_SPACK_LIBS} >> )
148
149
if ( TRACCC_SETUP_EIGEN3 )
149
150
if ( TRACCC_USE_SYSTEM_EIGEN3 )
150
151
find_package ( Eigen3 REQUIRED )
@@ -158,7 +159,7 @@ option( TRACCC_SETUP_TBB
158
159
"Set up the TBB target(s) explicitly" TRUE )
159
160
option ( TRACCC_USE_SYSTEM_TBB
160
161
"Pick up an existing installation of TBB from the build environment"
161
- ${TRACCC_USE_SYSTEM_LIBS} )
162
+ $< OR :$< BOOL : $ {TRACCC_USE_SYSTEM_LIBS}>,$< BOOL : ${TRACCC_USE_SPACK_LIBS} >> )
162
163
if ( TRACCC_SETUP_TBB )
163
164
if ( TRACCC_USE_SYSTEM_TBB )
164
165
find_package ( TBB REQUIRED )
@@ -172,7 +173,7 @@ option( TRACCC_SETUP_THRUST
172
173
"Set up the Thrust target(s) explicitly" TRUE )
173
174
option ( TRACCC_USE_SYSTEM_THRUST
174
175
"Pick up an existing installation of Thrust from the build environment"
175
- ${TRACCC_USE_SYSTEM_LIBS} )
176
+ $< OR :$< BOOL : $ {TRACCC_USE_SYSTEM_LIBS}>,$< BOOL : ${TRACCC_USE_SPACK_LIBS} >> )
176
177
if ( TRACCC_SETUP_THRUST )
177
178
if ( TRACCC_USE_SYSTEM_THRUST )
178
179
find_package ( Thrust REQUIRED )
@@ -206,7 +207,7 @@ option( TRACCC_SETUP_DPL
206
207
"Set up the DPL target(s) explicitly" ${TRACCC_BUILD_SYCL} )
207
208
option ( TRACCC_USE_SYSTEM_DPL
208
209
"Pick up an existing installation of DPL from the build environment"
209
- ${TRACCC_USE_SYSTEM_LIBS} )
210
+ $< OR :$< BOOL : $ {TRACCC_USE_SYSTEM_LIBS}>,$< BOOL : ${TRACCC_USE_SPACK_LIBS} >> )
210
211
if ( TRACCC_SETUP_DPL )
211
212
if ( TRACCC_USE_SYSTEM_DPL )
212
213
# OneDPL determines whether SYCL is supported by asking the C++ compiler
@@ -235,7 +236,7 @@ option( TRACCC_SETUP_KOKKOS
235
236
"Set up the Kokkos library" ${TRACCC_BUILD_KOKKOS} )
236
237
option ( TRACCC_USE_SYSTEM_KOKKOS
237
238
"Pick up an existing installation of Kokkos from the build environment"
238
- ${TRACCC_USE_SYSTEM_LIBS} )
239
+ $< OR :$< BOOL : $ {TRACCC_USE_SYSTEM_LIBS}>,$< BOOL : ${TRACCC_USE_SPACK_LIBS} >> )
239
240
if ( TRACCC_SETUP_KOKKOS )
240
241
if ( TRACCC_USE_SYSTEM_KOKKOS )
241
242
find_package ( Kokkos REQUIRED )
@@ -255,7 +256,7 @@ option( TRACCC_SETUP_ALPAKA
255
256
"Set up the Alpaka library" ${TRACCC_BUILD_ALPAKA} )
256
257
option ( TRACCC_USE_SYSTEM_ALPAKA
257
258
"Pick up an existing installation of Alpaka from the build environment"
258
- ${TRACCC_USE_SYSTEM_LIBS} )
259
+ $< OR :$< BOOL : $ {TRACCC_USE_SYSTEM_LIBS}>,$< BOOL : ${TRACCC_USE_SPACK_LIBS} >> )
259
260
if ( TRACCC_SETUP_ALPAKA )
260
261
# Default options for the Alpaka build.
261
262
set ( alpaka_ACC_CPU_B_SEQ_T_THREADS_ENABLE TRUE CACHE BOOL
@@ -328,7 +329,7 @@ option( TRACCC_SETUP_ACTS
328
329
"Set up the Acts target(s) explicitly" TRUE )
329
330
option ( TRACCC_USE_SYSTEM_ACTS
330
331
"Pick up an existing installation of Acts from the build environment"
331
- ${TRACCC_USE_SYSTEM_LIBS} )
332
+ $< OR :$< BOOL : $ {TRACCC_USE_SYSTEM_LIBS}>,$< BOOL : ${TRACCC_USE_SPACK_LIBS} >> )
332
333
if ( TRACCC_SETUP_ACTS )
333
334
if ( TRACCC_USE_SYSTEM_ACTS )
334
335
find_package ( Acts REQUIRED COMPONENTS PluginJson )
@@ -346,7 +347,7 @@ option( TRACCC_SETUP_GOOGLETEST
346
347
"Set up the GoogleTest target(s) explicitly" ${TRACCC_DEFAULT_SETUP_GOOGLETEST} )
347
348
option ( TRACCC_USE_SYSTEM_GOOGLETEST
348
349
"Pick up an existing installation of GoogleTest from the build environment"
349
- ${TRACCC_USE_SYSTEM_LIBS} )
350
+ $< OR :$< BOOL : $ {TRACCC_USE_SYSTEM_LIBS}>,$< BOOL : ${TRACCC_USE_SPACK_LIBS} >> )
350
351
if ( TRACCC_SETUP_GOOGLETEST )
351
352
if ( TRACCC_USE_SYSTEM_GOOGLETEST )
352
353
find_package ( GTest REQUIRED )
@@ -360,7 +361,7 @@ option( TRACCC_SETUP_BENCHMARKS
360
361
"Set up the Google Benchmark target(s) explicitly" TRUE )
361
362
option ( TRACCC_USE_SYSTEM_BENCHMARKS
362
363
"Pick up an existing installation of Google Benchmark from the build environment"
363
- ${TRACCC_USE_SYSTEM_LIBS} )
364
+ $< OR :$< BOOL : $ {TRACCC_USE_SYSTEM_LIBS}>,$< BOOL : ${TRACCC_USE_SPACK_LIBS} >> )
364
365
if ( TRACCC_SETUP_BENCHMARKS )
365
366
if ( TRACCC_USE_SYSTEM_BENCHMARKS )
366
367
find_package ( benchmark REQUIRED )
@@ -379,7 +380,7 @@ option( TRACCC_SETUP_INDICATORS
379
380
unset ( _indicatorsDefault )
380
381
option ( TRACCC_USE_SYSTEM_INDICATORS
381
382
"Pick up an existing installation of indicators from the build environment"
382
- ${TRACCC_USE_SYSTEM_LIBS} )
383
+ $< OR :$< BOOL : $ {TRACCC_USE_SYSTEM_LIBS}>,$< BOOL : ${TRACCC_USE_SPACK_LIBS} >> )
383
384
if ( TRACCC_SETUP_INDICATORS )
384
385
if ( TRACCC_USE_SYSTEM_INDICATORS )
385
386
find_package ( indicators REQUIRED )
0 commit comments