Skip to content

Commit 25cdf8d

Browse files
committed
Changed the logic for enabling the CUDA/SYCL libraries.
Making it such that TRACCC_BUILD_CUDA/SYCL would turn on the building of TRACCC_BUILD_CUDA/SYCL_UTILS. Instead of the <FOO>_UTILS flags gatekeeping the "main flags".
1 parent 971d89c commit 25cdf8d

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

CMakeLists.txt

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,15 @@ set( TRACCC_DEVICE_LOG_LVL "NONE" CACHE STRING
5757
"Log level for traccc and detray device code" )
5858

5959
# Flags controlling which parts of traccc to build.
60-
include( CMakeDependentOption )
60+
option( TRACCC_BUILD_CUDA
61+
"Build the traccc::cuda library" FALSE )
6162
option( TRACCC_BUILD_CUDA_UTILS
62-
"Build the traccc::cuda_utils library" FALSE )
63-
cmake_dependent_option( TRACCC_BUILD_CUDA
64-
"Build the traccc::cuda library" FALSE
65-
TRACCC_BUILD_CUDA_UTILS FALSE )
63+
"Build the traccc::cuda_utils library" ${TRACCC_BUILD_CUDA} )
6664
option( TRACCC_BUILD_HIP "Build the HIP sources included in traccc" FALSE)
65+
option( TRACCC_BUILD_SYCL
66+
"Build the traccc::sycl library" FALSE )
6767
option( TRACCC_BUILD_SYCL_UTILS
68-
"Build the traccc::sycl_utils library" FALSE )
69-
cmake_dependent_option( TRACCC_BUILD_SYCL
70-
"Build the traccc::sycl library" FALSE
71-
TRACCC_BUILD_SYCL_UTILS FALSE )
68+
"Build the traccc::sycl_utils library" ${TRACCC_BUILD_SYCL} )
7269
option( TRACCC_BUILD_ALPAKA "Build the Alpaka sources included in traccc"
7370
FALSE )
7471
option( TRACCC_BUILD_IO "Build the IO module (needed by examples, performance, testing)" TRUE )

0 commit comments

Comments
 (0)