summaryrefslogtreecommitdiffstats
path: root/Templates/MSBuild
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 /Templates/MSBuild
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 'Templates/MSBuild')
-rw-r--r--Templates/MSBuild/FlagTables/v10_Cuda.json20
1 files changed, 20 insertions, 0 deletions
diff --git a/Templates/MSBuild/FlagTables/v10_Cuda.json b/Templates/MSBuild/FlagTables/v10_Cuda.json
index 1831b8a..b3230ac 100644
--- a/Templates/MSBuild/FlagTables/v10_Cuda.json
+++ b/Templates/MSBuild/FlagTables/v10_Cuda.json
@@ -20,6 +20,26 @@
]
},
{
+ "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",
"comment": "No CUDA runtime library",