From b85f87fa409d24f1453562e878b99af7f52f7f32 Mon Sep 17 00:00:00 2001 From: Hannes Vogt Date: Wed, 13 Nov 2024 16:43:34 +0100 Subject: [PATCH] Identify CrayClang as Clang (#1813) --- cmake/public/detect_features.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)