CMake 3.28.0-RC3 CUDA arch parsing regression when using Visual Studio Generator
I am seeing a regression in CUDA language support when using the Visual Studio Generator.
Machine information: CUDA 12.2 Visual Studio 2019 or 2022
Reproducer is:
cmake_minimum_required(VERSION 3.26)
project(Reproducer LANGUAGES CUDA)
Error is:
-- The CUDA compiler identification is NVIDIA 12.2.140
CMake Error at C:/Work/cmake/src/Modules/CMakeDetermineCUDACompiler.cmake:289 (message):
Failed to detect a default CUDA architecture.
This regression doesn't occur when using non Visual Studio Generators.
More details logs: