Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
havogt committed Sep 24, 2024
1 parent 4d3da87 commit 0535f5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/public/detect_features.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,11 @@ endfunction()
# - NVCC-CUDA: Try NVCC-CUDA or fail.
function(detect_cuda_type cuda_type mode)
if(NOT CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
# not Clang, therefore the only option is NVCC
try_nvcc_cuda(gt_result)
set(${cuda_type} ${gt_result} PARENT_SCOPE)
return()
else()
else() # Clang
string(TOLOWER "${mode}" _lower_case_mode)
if(_lower_case_mode STREQUAL "clang-cuda")
try_clang_cuda(gt_result)
Expand Down

0 comments on commit 0535f5b

Please sign in to comment.