summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CUDA_architectures/architectures-suffix.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-04-28 18:46:45 (GMT)
committerBrad King <brad.king@kitware.com>2022-04-29 13:07:53 (GMT)
commit7bf520069938dcb106f9c0c7cc71ac079055ceed (patch)
tree87bfe43b50cdd8542178036298dd545f53f3707e /Tests/RunCMake/CUDA_architectures/architectures-suffix.cmake
parentd35f1c9beee14f1be1e39838b5d4be0906a48974 (diff)
downloadCMake-7bf520069938dcb106f9c0c7cc71ac079055ceed.zip
CMake-7bf520069938dcb106f9c0c7cc71ac079055ceed.tar.gz
CMake-7bf520069938dcb106f9c0c7cc71ac079055ceed.tar.bz2
CUDA: Restore CMAKE_CUDA_ARCHITECTURES support for -real and -virtual suffixes
Fix the validation regex added by commit c267ed205a (CUDA: Defer architecture testing to the compiler testing step, 2022-04-25) to allow these values.
Diffstat (limited to 'Tests/RunCMake/CUDA_architectures/architectures-suffix.cmake')
-rw-r--r--Tests/RunCMake/CUDA_architectures/architectures-suffix.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/CUDA_architectures/architectures-suffix.cmake b/Tests/RunCMake/CUDA_architectures/architectures-suffix.cmake
new file mode 100644
index 0000000..8d7ec03
--- /dev/null
+++ b/Tests/RunCMake/CUDA_architectures/architectures-suffix.cmake
@@ -0,0 +1,6 @@
+set(CMAKE_CUDA_ARCHITECTURES "${arch}-real;${arch}-virtual;")
+enable_language(CUDA)
+message(STATUS "CMAKE_CUDA_ARCHITECTURES='${CMAKE_CUDA_ARCHITECTURES}'")
+message(STATUS "CMAKE_CUDA_ARCHITECTURES_ALL='${CMAKE_CUDA_ARCHITECTURES_ALL}'")
+message(STATUS "CMAKE_CUDA_ARCHITECTURES_ALL_MAJOR='${CMAKE_CUDA_ARCHITECTURES_ALL_MAJOR}'")
+message(STATUS "CMAKE_CUDA_ARCHITECTURES_NATIVE='${CMAKE_CUDA_ARCHITECTURES_NATIVE}'")