diff options
author | Brad King <brad.king@kitware.com> | 2017-06-27 13:14:26 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-06-27 13:14:26 (GMT) |
commit | 1d86103846d4e8557c3cc77d3c1f2dce9231663d (patch) | |
tree | 1de4eb6e4c848949ad1bdaf0008456a17a3d5317 /Tests | |
parent | c24e66561356af461245a59dda8f5161399d48a6 (diff) | |
parent | bbc1f3642cb86ce59908ee33eeb409d7921f73f8 (diff) | |
download | CMake-1d86103846d4e8557c3cc77d3c1f2dce9231663d.zip CMake-1d86103846d4e8557c3cc77d3c1f2dce9231663d.tar.gz CMake-1d86103846d4e8557c3cc77d3c1f2dce9231663d.tar.bz2 |
Merge branch 'vs-cuda-fix-flags' into release-3.9
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CudaOnly/SeparateCompilation/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/CudaOnly/SeparateCompilation/CMakeLists.txt b/Tests/CudaOnly/SeparateCompilation/CMakeLists.txt index f42324e..3d4a170 100644 --- a/Tests/CudaOnly/SeparateCompilation/CMakeLists.txt +++ b/Tests/CudaOnly/SeparateCompilation/CMakeLists.txt @@ -16,6 +16,11 @@ set(CMAKE_CUDA_STANDARD 11) add_library(CUDASeparateLibA STATIC file1.cu file2.cu file3.cu) if(CMAKE_CUDA_SIMULATE_ID STREQUAL "MSVC") + # Test adding a flag that is not in our CUDA flag table for VS. + if(NOT CMAKE_CUDA_COMPILER_VERSION VERSION_LESS 8) + string(APPEND CMAKE_CUDA_FLAGS " --ftemplate-depth 50") + endif() + # Test adding a flag that nvcc should pass to the host compiler. target_compile_options(CUDASeparateLibA PRIVATE -Xcompiler=-bigobj) endif() |