diff options
author | Raul Tambre <raul@tambre.ee> | 2020-11-24 16:50:32 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-11-25 13:27:40 (GMT) |
commit | 20807a188299b5f070cf145e40539a30761975ff (patch) | |
tree | 830cc69c120819ab9bf584c978d0ad2bd15539c7 /Modules/CMakeDetermineCompilerABI.cmake | |
parent | 1a059d91af07993a02a85f4d6043a8e28742aab0 (diff) | |
download | CMake-20807a188299b5f070cf145e40539a30761975ff.zip CMake-20807a188299b5f070cf145e40539a30761975ff.tar.gz CMake-20807a188299b5f070cf145e40539a30761975ff.tar.bz2 |
CUDA: Fix user-set architectures during detection with Visual Studio
If the user specifies CMAKE_CUDA_ARCHITECTURES we use those during detection
and error out if they don't work.
For Visual Studio a dummy project file is used instead of invoking the compiler
directly. NVCC would thus use its default and we'd fail if
CMAKE_CUDA_ARCHITECTURES was anything other than NVCC's default.
Use the necessary project file variable in CMakeDetermineCompilerId.cmake to
match other generators.
Fixes #21492.
Diffstat (limited to 'Modules/CMakeDetermineCompilerABI.cmake')
0 files changed, 0 insertions, 0 deletions