diff --git a/cmake/public/detect_features.cmake b/cmake/public/detect_features.cmake index 9f7a1cd61..606798e90 100644 --- a/cmake/public/detect_features.cmake +++ b/cmake/public/detect_features.cmake @@ -46,7 +46,7 @@ endfunction() # - Clang-CUDA: Try Clang-CUDA or fail. # - NVCC-CUDA: Try NVCC-CUDA or fail. function(detect_cuda_type cuda_type mode) - if(NOT CMAKE_CXX_COMPILER_ID STREQUAL "Clang") + if(NOT (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "CrayClang")) # not Clang, therefore the only option is NVCC try_nvcc_cuda(gt_result) set(${cuda_type} ${gt_result} PARENT_SCOPE)