Files
CMake/Tests/RunCMake/CUDA_architectures/architectures-empty.cmake
Raul Tambre 7a0d098352 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").
2022-01-27 22:11:13 +02:00

3 lines
55 B
CMake

set(CMAKE_CUDA_ARCHITECTURES "")
enable_language(CUDA)