diff options
author | Brad King <brad.king@kitware.com> | 2024-05-23 17:08:04 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-05-23 17:22:34 (GMT) |
commit | 69f26d8156fed8e9ef597854ffe343e5671b04b9 (patch) | |
tree | e81fde3f9b88de631ed1d811ef703608ca1b4a86 /Tests | |
parent | cbe26bdeda35e570d8fcd99ad3b38e1cea2e38bd (diff) | |
download | CMake-69f26d8156fed8e9ef597854ffe343e5671b04b9.zip CMake-69f26d8156fed8e9ef597854ffe343e5671b04b9.tar.gz CMake-69f26d8156fed8e9ef597854ffe343e5671b04b9.tar.bz2 |
VS: Fix compiler identification of nvcc with unsupported host compiler
`nvcc` from CUDA < 12.4 does support the MSVC 14.40.17.10 toolset.
Users may specify `CUDAFLAGS=-allow-unsupported-compiler` to bypass the
check. However, we do not use arbitrary user-specified flags during
compiler identification in the VS generator because escaping them for
the `AdditionalOptions` of the `.vcxproj` file requires non-trivial
logic that we currently only implement in the C++ generator code.
Instead, just always pass `-allow-unsupported-compiler` during CUDA
compiler identification in the VS generator.
Fixes: #26003
Diffstat (limited to 'Tests')
0 files changed, 0 insertions, 0 deletions