diff options
author | Raul Tambre <raul@tambre.ee> | 2020-11-27 15:18:29 (GMT) |
---|---|---|
committer | Raul Tambre <raul@tambre.ee> | 2020-11-30 15:57:27 (GMT) |
commit | c57541d874ce2a22555e1aae302d27190d74a5a4 (patch) | |
tree | c764012711bf3b70856ae78b643e86016a95fee4 /Tests/RunCMake/CMP0104 | |
parent | c4ae9384ff4d355f51c06180984dd4d053f074cc (diff) | |
download | CMake-c57541d874ce2a22555e1aae302d27190d74a5a4.zip CMake-c57541d874ce2a22555e1aae302d27190d74a5a4.tar.gz CMake-c57541d874ce2a22555e1aae302d27190d74a5a4.tar.bz2 |
CUDA: Fix tests with CUDAARCHS set
With CUDAARCHS there's the possibility of tests being run with multiple
architectures or having CMAKE_CUDA_ARCHITECTURES set with NVCC despite CMP0104
being OLD.
Fix a few tests to work properly in such cases.
Diffstat (limited to 'Tests/RunCMake/CMP0104')
-rw-r--r-- | Tests/RunCMake/CMP0104/CMP0104-OLD.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMP0104/CMP0104-OLD.cmake b/Tests/RunCMake/CMP0104/CMP0104-OLD.cmake index 415eecc..6988447 100644 --- a/Tests/RunCMake/CMP0104/CMP0104-OLD.cmake +++ b/Tests/RunCMake/CMP0104/CMP0104-OLD.cmake @@ -1,3 +1,5 @@ +set(ENV{CUDAARCHS}) + cmake_policy(SET CMP0104 OLD) include(CMP0104-Common.cmake) |