summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CUDA_architectures/RunCMakeTest.cmake
diff options
context:
space:
mode:
authorRaul Tambre <raul@tambre.ee>2021-12-27 18:40:29 (GMT)
committerRaul Tambre <raul@tambre.ee>2022-01-27 20:11:13 (GMT)
commit7a0d0983521cbd16030add2afbb0f7d9e75cce6f (patch)
tree0ec31eaa38525b49c7003c9b3401acf32eecfa5f /Tests/RunCMake/CUDA_architectures/RunCMakeTest.cmake
parentd19273bc7b361a54041706c02857993e244d3b50 (diff)
downloadCMake-7a0d0983521cbd16030add2afbb0f7d9e75cce6f.zip
CMake-7a0d0983521cbd16030add2afbb0f7d9e75cce6f.tar.gz
CMake-7a0d0983521cbd16030add2afbb0f7d9e75cce6f.tar.bz2
CUDA: Error on empty/invalid CMAKE_CUDA_ARCHITECTURES set by user
If empty we otherwise treat it the same as unset in most places, but still end up failing eventually with a confusing "Failed to find a working CUDA architecture". This also detects some other basic invalid ones (e.g. "al").
Diffstat (limited to 'Tests/RunCMake/CUDA_architectures/RunCMakeTest.cmake')
-rw-r--r--Tests/RunCMake/CUDA_architectures/RunCMakeTest.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/CUDA_architectures/RunCMakeTest.cmake b/Tests/RunCMake/CUDA_architectures/RunCMakeTest.cmake
new file mode 100644
index 0000000..cbbf57c
--- /dev/null
+++ b/Tests/RunCMake/CUDA_architectures/RunCMakeTest.cmake
@@ -0,0 +1,4 @@
+include(RunCMake)
+
+run_cmake(architectures-empty)
+run_cmake(architectures-invalid)