diff options
author | Brad King <brad.king@kitware.com> | 2017-06-22 14:04:34 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-06-22 14:04:37 (GMT) |
commit | 396b618c523d042df1c96cb08be1163e5c72d150 (patch) | |
tree | ce540d2974d815148c95a9618db5dbed6a054bab /Tests/CudaOnly/SeparateCompilation | |
parent | 416e7919ec92d2899e27949132fce59a1926aeab (diff) | |
parent | 3b75421515835b2fc6713be3015cc3f7324bb5a8 (diff) | |
download | CMake-396b618c523d042df1c96cb08be1163e5c72d150.zip CMake-396b618c523d042df1c96cb08be1163e5c72d150.tar.gz CMake-396b618c523d042df1c96cb08be1163e5c72d150.tar.bz2 |
Merge topic 'vs-cuda-fix-flags'
3b754215 VS: Improve workaround for CUDA -Xcompiler placement bug
f2059585 VS: Fix target_compile_options for CUDA
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !996
Diffstat (limited to 'Tests/CudaOnly/SeparateCompilation')
-rw-r--r-- | Tests/CudaOnly/SeparateCompilation/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/CudaOnly/SeparateCompilation/CMakeLists.txt b/Tests/CudaOnly/SeparateCompilation/CMakeLists.txt index 55fd79f..b946e3f 100644 --- a/Tests/CudaOnly/SeparateCompilation/CMakeLists.txt +++ b/Tests/CudaOnly/SeparateCompilation/CMakeLists.txt @@ -15,6 +15,10 @@ set(CMAKE_CUDA_STANDARD 11) add_library(CUDASeparateLibA STATIC file1.cu file2.cu file3.cu) +if(CMAKE_CUDA_SIMULATE_ID STREQUAL "MSVC") + target_compile_options(CUDASeparateLibA PRIVATE -Xcompiler=-bigobj) +endif() + #Having file4/file5 in a shared library causes serious problems #with the nvcc linker and it will generate bad entries that will #cause a segv when trying to run the executable |