Skip to content

Commit

Permalink
Only enable CUDA language when needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
alliepiper committed Oct 22, 2024
1 parent 102170a commit 2d72e13
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cudax/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@ if (CCCL_ENABLE_CUDAX)
cmake_minimum_required(VERSION 3.21)
endif()

project(cudax LANGUAGES CUDA CXX)
project(cudax LANGUAGES CXX)

if (NOT CCCL_ENABLE_CUDAX)
include(cmake/cudaxAddSubdir.cmake)
return()
endif()

# Enable CUDA only when required for the developer build, see #2609
enable_language(CUDA)

option(cudax_ENABLE_HEADER_TESTING "Test that CUDA Experimental's public headers compile." ON)
option(cudax_ENABLE_TESTING "Build CUDA Experimental's tests." ON)

Expand Down

0 comments on commit 2d72e13

Please sign in to comment.