Skip to content

Commit

Permalink
Identify CrayClang as Clang (#1813)
Browse files Browse the repository at this point in the history
  • Loading branch information
havogt committed Nov 13, 2024
1 parent 99e1609 commit b85f87f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/public/detect_features.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b85f87f

Please sign in to comment.