summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMP0104/CMP0104-OLD.cmake
blob: 415eecc5cca75df7c47e804a6855c5b66c1084c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
cmake_policy(SET CMP0104 OLD)
include(CMP0104-Common.cmake)

if(CMAKE_CUDA_COMPILER_ID STREQUAL "NVIDIA")
  if(CMAKE_CUDA_ARCHITECTURES)
    message(FATAL_ERROR "CMAKE_CUDA_ARCHITECTURES isn't empty for NVIDIA with CMP0104 OLD.")
  endif()
else(NOT CMAKE_CUDA_COMPILER_ID STREQUAL "Unknown")
  if(NOT CMAKE_CUDA_ARCHITECTURES)
    message(FATAL_ERROR "CMAKE_CUDA_ARCHITECTURES isn't non-empty for non-NVIDIA with CMP0104 OLD.")
  endif()
endif()