diff options
author | Raul Tambre <raul@tambre.ee> | 2021-12-27 18:40:29 (GMT) |
---|---|---|
committer | Raul Tambre <raul@tambre.ee> | 2022-01-27 20:11:13 (GMT) |
commit | 7a0d0983521cbd16030add2afbb0f7d9e75cce6f (patch) | |
tree | 0ec31eaa38525b49c7003c9b3401acf32eecfa5f /Tests/RunCMake/CUDA_architectures/RunCMakeTest.cmake | |
parent | d19273bc7b361a54041706c02857993e244d3b50 (diff) | |
download | CMake-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.cmake | 4 |
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) |