summaryrefslogtreecommitdiffstats
path: root/Templates
diff options
context:
space:
mode:
authorStephan Szabo <stephan.szabo@sony.com>2018-11-21 18:04:30 (GMT)
committerStephan Szabo <stephan.szabo@sony.com>2018-11-28 15:43:26 (GMT)
commit73ce99cbfe5712b0f35644baf619ddc0ca754de9 (patch)
tree95b1b57a7f3ce19cff4c6449e277b881f896f945 /Templates
parentf044bbbf08575cb06f468f30680108162d7288d0 (diff)
downloadCMake-73ce99cbfe5712b0f35644baf619ddc0ca754de9.zip
CMake-73ce99cbfe5712b0f35644baf619ddc0ca754de9.tar.gz
CMake-73ce99cbfe5712b0f35644baf619ddc0ca754de9.tar.bz2
VS: Select the CUDA runtime library
Original header commit v3.9.0-rc1~431^2~5 Parse the `-cudart=` option and add a corresponding `CudaRuntime` field to the generated project file. Also add a matching `.lib` to the list of libraries linked.
Diffstat (limited to 'Templates')
-rw-r--r--Templates/MSBuild/FlagTables/v10_Cuda.json30
1 files changed, 30 insertions, 0 deletions
diff --git a/Templates/MSBuild/FlagTables/v10_Cuda.json b/Templates/MSBuild/FlagTables/v10_Cuda.json
index ab63367..5f6b0da 100644
--- a/Templates/MSBuild/FlagTables/v10_Cuda.json
+++ b/Templates/MSBuild/FlagTables/v10_Cuda.json
@@ -18,5 +18,35 @@
"UserFollowing",
"SpaceAppendable"
]
+ },
+ {
+ "name": "CudaRuntime",
+ "switch": "cudart=none",
+ "comment": "No CUDA runtime library",
+ "value": "None",
+ "flags": []
+ },
+ {
+ "name": "CudaRuntime",
+ "switch": "cudart=shared",
+ "comment": "Shared/dynamic CUDA runtime library",
+ "value": "Shared",
+ "flags": []
+ },
+ {
+ "name": "CudaRuntime",
+ "switch": "cudart=static",
+ "comment": "Static CUDA runtime library",
+ "value": "Static",
+ "flags": []
+ },
+ {
+ "name": "CudaRuntime",
+ "switch": "cudart",
+ "comment": "CUDA runtime library",
+ "value": "",
+ "flags": [
+ "UserFollowing"
+ ]
}
]