Skip to content

Commit

Permalink
Rename host build flag
Browse files Browse the repository at this point in the history
  • Loading branch information
niermann999 committed Sep 19, 2024
1 parent 69392eb commit 5d9961d
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ jobs:
-DDETRAY_BUILD_INTEGRATIONTESTS=ON \
-DDETRAY_BUILD_BENCHMARKS=ON \
-DDETRAY_BUILD_TUTORIALS=ON \
-DDETRAY_NO_HOST_BUILD=ON \
-DDETRAY_BUILD_HOST=OFF \
-DDETRAY_FAIL_ON_WARNINGS=ON \
-DCMAKE_BUILD_TYPE=${{ matrix.BUILD_TYPE }} \
-DDETRAY_CUSTOM_SCALARTYPE=${{ matrix.SCALAR_TYPE }} \
Expand Down
4 changes: 2 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ build_cuda:
-DDETRAY_BUILD_INTEGRATIONTESTS=ON
-DDETRAY_BUILD_BENCHMARKS=ON
-DDETRAY_BUILD_TUTORIALS=ON
-DDETRAY_NO_HOST_BUILD=ON
-DDETRAY_BUILD_HOST=OFF
-DDETRAY_FAIL_ON_WARNINGS=ON
- cmake --build build

Expand Down Expand Up @@ -76,7 +76,7 @@ build_sycl:
-DDETRAY_BUILD_INTEGRATIONTESTS=ON
-DDETRAY_BUILD_BENCHMARKS=OFF
-DDETRAY_BUILD_TUTORIALS=OFF
-DDETRAY_NO_HOST_BUILD=ON
-DDETRAY_BUILD_HOST=OFF
-DDETRAY_FAIL_ON_WARNINGS=ON
- cmake --build build

Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ option( DETRAY_SVG_DISPLAY "Build ActSVG display module" OFF)
option( DETRAY_BUILD_SYCL "Build the SYCL sources included in detray" OFF )
option( DETRAY_BUILD_CUDA "Build the CUDA sources included in detray"
${DETRAY_BUILD_CUDA_DEFAULT} )
cmake_dependent_option(DETRAY_BUILD_HOST "Build the host sources included in detray" ON "DETRAY_BUILD_CUDA OR DETRAY_BUILD_SYCL" ON)
option( DETRAY_BUILD_TEST_UTILS "Build the test utility library of Detray" OFF )
option( DETRAY_BUILD_UNITTESTS "Build the unit tests of Detray" OFF )
option( DETRAY_BUILD_INTEGRATIONTESTS "Build the integration tests of Detray"
OFF )
option( DETRAY_BUILD_BENCHMARKS "Build the benchmark tests" OFF )
option( DETRAY_BUILD_TUTORIALS "Build the tutorial executables of Detray" OFF )
cmake_dependent_option(DETRAY_NO_HOST_BUILD "Do not build host targets" OFF "DETRAY_BUILD_CUDA OR DETRAY_BUILD_SYCL" OFF)
option( DETRAY_FAIL_ON_WARNINGS
"Make the build fail on compiler/linker warnings" FALSE )

Expand Down
2 changes: 1 addition & 1 deletion tests/benchmarks/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Mozilla Public License Version 2.0

# Set up the host/cpu benchmarks.
if( NOT DETRAY_NO_HOST_BUILD )
if( DETRAY_BUILD_HOST )
add_subdirectory( cpu )
endif()

Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Mozilla Public License Version 2.0

# Set up all of the "host" tests.
if( NOT DETRAY_NO_HOST_BUILD )
if( DETRAY_BUILD_HOST )
message(STATUS "Building detray host integration tests")

add_subdirectory( cpu )
Expand Down
2 changes: 1 addition & 1 deletion tests/tools/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
# Mozilla Public License Version 2.0

if( NOT DETRAY_NO_HOST_BUILD )
if( DETRAY_BUILD_HOST )
add_subdirectory( cpu )
endif()

Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Mozilla Public License Version 2.0

# Set up all of the "host" tests.
if( NOT DETRAY_NO_HOST_BUILD )
if( DETRAY_BUILD_HOST )
message(STATUS "Building detray host unit tests")

add_subdirectory( covfie )
Expand Down
2 changes: 1 addition & 1 deletion tutorials/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Mozilla Public License Version 2.0

# Set up all of the "host" tutorials.
if( NOT DETRAY_NO_HOST_BUILD )
if( DETRAY_BUILD_HOST )
add_subdirectory( cpu )
endif()

Expand Down

0 comments on commit 5d9961d

Please sign in to comment.