diff options
author | Brad King <brad.king@kitware.com> | 2024-01-18 19:25:35 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-01-18 19:27:29 (GMT) |
commit | a9bb2606c1c16a2077496ad5082a2ba2628d5194 (patch) | |
tree | dc126b12724c1e27c035a771c29fc2eb16ec6216 /Tests/CudaOnly | |
parent | c75047709f2ee2a3f8791f19b9ce8cc76e633521 (diff) | |
download | CMake-a9bb2606c1c16a2077496ad5082a2ba2628d5194.zip CMake-a9bb2606c1c16a2077496ad5082a2ba2628d5194.tar.gz CMake-a9bb2606c1c16a2077496ad5082a2ba2628d5194.tar.bz2 |
Tests: Fix condition adding nvcc-only flags in CudaOnly.SeparateCompilation
Diffstat (limited to 'Tests/CudaOnly')
-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 ca73b1a..f2eb406 100644 --- a/Tests/CudaOnly/SeparateCompilation/CMakeLists.txt +++ b/Tests/CudaOnly/SeparateCompilation/CMakeLists.txt @@ -20,7 +20,7 @@ set_target_properties(CUDASeparateLibA POSITION_INDEPENDENT_CODE ON) unset(CMAKE_CUDA_SEPARABLE_COMPILATION) -if(CMAKE_CUDA_SIMULATE_ID STREQUAL "MSVC") +if(CMAKE_CUDA_COMPILER_ID STREQUAL "NVIDIA" AND 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") |