diff options
author | Brad King <brad.king@kitware.com> | 2017-02-14 20:09:55 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-02-15 16:12:09 (GMT) |
commit | d7c80f60362cbc40216fab67318d94988030315c (patch) | |
tree | 85aee2b8ba402266dd8da14740e8a6ca7be7ca00 /Tests/CudaOnly/SeparateCompilation | |
parent | 272c348d5a1c3f713586e05e0d73fd18441f7bb2 (diff) | |
download | CMake-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/SeparateCompilation')
-rw-r--r-- | Tests/CudaOnly/SeparateCompilation/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/CudaOnly/SeparateCompilation/CMakeLists.txt b/Tests/CudaOnly/SeparateCompilation/CMakeLists.txt index 7055eef..d134b96 100644 --- a/Tests/CudaOnly/SeparateCompilation/CMakeLists.txt +++ b/Tests/CudaOnly/SeparateCompilation/CMakeLists.txt @@ -9,7 +9,7 @@ project (CudaOnlySeparateCompilation CUDA) #and executables. #We complicate the matter by also testing that multiple static libraries #all containing cuda separable compilation code links properly -set(CMAKE_CUDA_FLAGS "-gencode arch=compute_30,code=compute_30") +string(APPEND CMAKE_CUDA_FLAGS " -gencode arch=compute_30,code=compute_30") set(CMAKE_CXX_STANDARD 11) set(CMAKE_CUDA_STANDARD 11) add_library(CUDASerarateLibA STATIC file1.cu file2.cu file3.cu) |