Commit c7769867 authored by Brad King's avatar Brad King
Browse files

Merge branch 'cuda-arch-version' into release-3.12

Merge-request: !2251
parents 3bab41f8 37ba34c0
...@@ -18,8 +18,9 @@ ...@@ -18,8 +18,9 @@
# #
if(CMAKE_CUDA_COMPILER_LOADED) # CUDA as a language if(CMAKE_CUDA_COMPILER_LOADED) # CUDA as a language
if(CMAKE_CUDA_COMPILER_ID STREQUAL "NVIDIA") if(CMAKE_CUDA_COMPILER_ID STREQUAL "NVIDIA"
set(CUDA_VERSION "${CMAKE_CUDA_COMPILER_VERSION}") AND CMAKE_CUDA_COMPILER_VERSION MATCHES "^([0-9]+\\.[0-9]+)")
set(CUDA_VERSION "${CMAKE_MATCH_1}")
endif() endif()
endif() endif()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment