mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 04:40:56 -06:00
Simplifies CUDA target architecture handling. Required for Clang support as Clang doesn't automatically select a supported architecture. We detect a supported architecture during compiler identification and set CMAKE_CUDA_ARCHITECTURES to it. Introduces CMP0104 for backwards compatibility with manually setting code generation flags with NVCC. Implements #17963.
5 lines
114 B
CMake
5 lines
114 B
CMake
cmake_policy(SET CMP0104 NEW)
|
|
enable_language(CUDA)
|
|
set(CMAKE_VERBOSE_MAKEFILE TRUE)
|
|
add_executable(main main.cu)
|