summaryrefslogtreecommitdiffstats
path: root/Templates/MSBuild/FlagTables/v10_Cuda.json
diff options
context:
space:
mode:
authorStephan Szabo <stephan.szabo@sony.com>2018-11-21 17:53:55 (GMT)
committerStephan Szabo <stephan.szabo@sony.com>2018-11-28 15:43:26 (GMT)
commitf044bbbf08575cb06f468f30680108162d7288d0 (patch)
tree2d898f665c7a7f6b2fe41ea54d7cb308d4e82adb /Templates/MSBuild/FlagTables/v10_Cuda.json
parent7faa4d59a858ef0d7eef77c2ae8e8194c2d87385 (diff)
downloadCMake-f044bbbf08575cb06f468f30680108162d7288d0.zip
CMake-f044bbbf08575cb06f468f30680108162d7288d0.tar.gz
CMake-f044bbbf08575cb06f468f30680108162d7288d0.tar.bz2
VS: Place CUDA host compiler options in proper project file fields
Original header commit v3.9.0-rc1~431^2~6 The CUDA Toolkit's VS integration provides abstractions for host compiler options for `nvcc` to pass through `-Xcompiler` to the host MSVC. Populate our secondary flag table and use it to remove flags from the `AdditionalCompilerOptions` in favor of their abstractions. Unfortunately a bug in the CUDA 8.0 VS integration prevents us from passing anything in `AdditionalCompilerOptions` reliably. After taking out the flags that have dedicated abstractions, drop the rest.
Diffstat (limited to 'Templates/MSBuild/FlagTables/v10_Cuda.json')
-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 0d4f101..ab63367 100644
--- a/Templates/MSBuild/FlagTables/v10_Cuda.json
+++ b/Templates/MSBuild/FlagTables/v10_Cuda.json
@@ -1,2 +1,22 @@
[
+ {
+ "name": "AdditionalCompilerOptions",
+ "switch": "Xcompiler=",
+ "comment": "Host compiler options",
+ "value": "",
+ "flags": [
+ "UserValue",
+ "SpaceAppendable"
+ ]
+ },
+ {
+ "name": "AdditionalCompilerOptions",
+ "switch": "Xcompiler",
+ "comment": "Host compiler options",
+ "value": "",
+ "flags": [
+ "UserFollowing",
+ "SpaceAppendable"
+ ]
+ }
]