summaryrefslogtreecommitdiffstats
path: root/Tests/CudaOnly/WithDefs
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2020-01-02 19:35:24 (GMT)
committerRobert Maynard <robert.maynard@kitware.com>2020-01-02 19:35:24 (GMT)
commit568298a3366d1ddec38cada2378f86f5e9691e65 (patch)
treeb12c75469b3105edfce0a01a9b7e7c7614f60b8c /Tests/CudaOnly/WithDefs
parent47a907413bb8aa2394a3003c90775b402b53d35a (diff)
downloadCMake-568298a3366d1ddec38cada2378f86f5e9691e65.zip
CMake-568298a3366d1ddec38cada2378f86f5e9691e65.tar.gz
CMake-568298a3366d1ddec38cada2378f86f5e9691e65.tar.bz2
CUDA: MSVC + NVCC support --compiler-options compiler flag
Fixes #20164
Diffstat (limited to 'Tests/CudaOnly/WithDefs')
-rw-r--r--Tests/CudaOnly/WithDefs/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/CudaOnly/WithDefs/CMakeLists.txt b/Tests/CudaOnly/WithDefs/CMakeLists.txt
index 00fd7d2..ba9bf04 100644
--- a/Tests/CudaOnly/WithDefs/CMakeLists.txt
+++ b/Tests/CudaOnly/WithDefs/CMakeLists.txt
@@ -28,7 +28,7 @@ target_compile_options(CudaOnlyWithDefs
PRIVATE
-DFLAG_COMPILE_LANG_$<COMPILE_LANGUAGE>
-DFLAG_LANG_IS_CUDA=$<COMPILE_LANGUAGE:CUDA>
- -Xcompiler=-DHOST_DEFINE
+ --compiler-options=-DHOST_DEFINE
$<$<CONFIG:DEBUG>:$<BUILD_INTERFACE:${debug_compile_flags}>>
)