summaryrefslogtreecommitdiffstats
path: root/Tests/CudaOnly/WithDefs
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-02-14 20:09:55 (GMT)
committerBrad King <brad.king@kitware.com>2017-02-15 16:12:09 (GMT)
commitd7c80f60362cbc40216fab67318d94988030315c (patch)
tree85aee2b8ba402266dd8da14740e8a6ca7be7ca00 /Tests/CudaOnly/WithDefs
parent272c348d5a1c3f713586e05e0d73fd18441f7bb2 (diff)
downloadCMake-d7c80f60362cbc40216fab67318d94988030315c.zip
CMake-d7c80f60362cbc40216fab67318d94988030315c.tar.gz
CMake-d7c80f60362cbc40216fab67318d94988030315c.tar.bz2
CUDA: Fix test cases to not override CUDA flags
Append to `CMAKE_CUDA_FLAGS` instead of overwriting it.
Diffstat (limited to 'Tests/CudaOnly/WithDefs')
-rw-r--r--Tests/CudaOnly/WithDefs/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/CudaOnly/WithDefs/CMakeLists.txt b/Tests/CudaOnly/WithDefs/CMakeLists.txt
index 6c4011c..2646d29 100644
--- a/Tests/CudaOnly/WithDefs/CMakeLists.txt
+++ b/Tests/CudaOnly/WithDefs/CMakeLists.txt
@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.7)
project (CudaOnlyWithDefs CUDA)
#verify that we can pass explicit cuda arch flags
-set(CMAKE_CUDA_FLAGS "-gencode arch=compute_30,code=compute_30")
+string(APPEND CMAKE_CUDA_FLAGS " -gencode arch=compute_30,code=compute_30")
set(debug_compile_flags --generate-code arch=compute_20,code=sm_20)
if(CMAKE_CUDA_SIMULATE_ID STREQUAL "MSVC")
list(APPEND debug_compile_flags -Xcompiler=-WX)