mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 22:58:37 -05:00
e98588aaba
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.
7 lines
183 B
CMake
7 lines
183 B
CMake
cmake_policy(SET CMP0104 NEW)
|
|
include(CMP0104-Common.cmake)
|
|
|
|
if(NOT CMAKE_CUDA_ARCHITECTURES)
|
|
message(FATAL_ERROR "CMAKE_CUDA_ARCHITECTURES is empty with CMP0104 enabled.")
|
|
endif()
|