mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-27 11:18:35 -06:00
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.
This commit is contained in:
@@ -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"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user