Skip to content

Commit 3e26b32

Browse files
authored
Identify CrayClang as Clang (#1813)
1 parent 5570fa5 commit 3e26b32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/public/detect_features.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ endfunction()
4646
# - Clang-CUDA: Try Clang-CUDA or fail.
4747
# - NVCC-CUDA: Try NVCC-CUDA or fail.
4848
function(detect_cuda_type cuda_type mode)
49-
if(NOT CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
49+
if(NOT (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "CrayClang"))
5050
# not Clang, therefore the only option is NVCC
5151
try_nvcc_cuda(gt_result)
5252
set(${cuda_type} ${gt_result} PARENT_SCOPE)

0 commit comments

Comments
 (0)