Skip to content
Snippets Groups Projects
Commit 2c95cb3c authored by Kyle Edwards's avatar Kyle Edwards Committed by Kitware Robot
Browse files

Merge topic 'msvc_support_nvcc--compiler-options'


568298a3 CUDA: MSVC + NVCC support --compiler-options compiler flag

Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !4177
parents e7f3db64 568298a3
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,26 @@
"SpaceAppendable"
]
},
{
"name": "AdditionalCompilerOptions",
"switch": "-compiler-options=",
"comment": "Host compiler options",
"value": "",
"flags": [
"UserValue",
"SpaceAppendable"
]
},
{
"name": "AdditionalCompilerOptions",
"switch": "-compiler-options",
"comment": "Host compiler options",
"value": "",
"flags": [
"UserFollowing",
"SpaceAppendable"
]
},
{
"name": "CudaRuntime",
"switch": "cudart=none",
......
......@@ -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}>>
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment