mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 22:31:18 -05:00
7024596a26
Clang does not automatically choose an architecture supported by the SDK. The `OFF` value is meant for users to provide their own architecture flags, so provide one as part of the test.
8 lines
299 B
CMake
8 lines
299 B
CMake
unset(CMAKE_CUDA_ARCHITECTURES)
|
|
enable_language(CUDA)
|
|
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/info.cmake" "
|
|
set(CMAKE_CUDA_COMPILER_ID \"${CMAKE_CUDA_COMPILER_ID}\")
|
|
set(CMAKE_CUDA_COMPILER_VERSION \"${CMAKE_CUDA_COMPILER_VERSION}\")
|
|
set(CMAKE_CUDA_ARCHITECTURES \"${CMAKE_CUDA_ARCHITECTURES}\")
|
|
")
|