From a9bb2606c1c16a2077496ad5082a2ba2628d5194 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 18 Jan 2024 14:25:35 -0500 Subject: Tests: Fix condition adding nvcc-only flags in CudaOnly.SeparateCompilation --- Tests/CudaOnly/SeparateCompilation/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") -- cgit v0.12