Skip to content

VS: Fix CUDA CodeGeneration field for CMAKE_CUDA_ARCHITECTURES=OFF

Brad King requested to merge brad.king/cmake:cuda-arch-off-vs into master

If we add no CUDA architecture flags, write an empty CodeGeneration field to tell the CUDA Toolkit's VS integration not to add its default flags. We already use this approach for CMAKE_CUDA_ARCHITECTURES=all so that the -arch=all flag can be added via AdditionalOptions.

Fixes: #23490 (closed)
Backport: release

Merge request reports