diff options
author | Brad King <brad.king@kitware.com> | 2017-03-07 21:19:22 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-03-10 15:19:57 (GMT) |
commit | 253594d0aec0cbe34694cac59ef1a8e42a532118 (patch) | |
tree | 29fbe76be9f47076af03470cde40cc219580d98c /Source/cmVS10CudaFlagTable.h | |
parent | 4def02a3852eb211e26951819646f8cd8ee6c00c (diff) | |
download | CMake-253594d0aec0cbe34694cac59ef1a8e42a532118.zip CMake-253594d0aec0cbe34694cac59ef1a8e42a532118.tar.gz CMake-253594d0aec0cbe34694cac59ef1a8e42a532118.tar.bz2 |
VS: Select the CUDA runtime library
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 'Source/cmVS10CudaFlagTable.h')
-rw-r--r-- | Source/cmVS10CudaFlagTable.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmVS10CudaFlagTable.h b/Source/cmVS10CudaFlagTable.h index 0a93de8..268553d 100644 --- a/Source/cmVS10CudaFlagTable.h +++ b/Source/cmVS10CudaFlagTable.h @@ -5,5 +5,14 @@ static cmVS7FlagTable cmVS10CudaFlagTable[] = { { "AdditionalCompilerOptions", "Xcompiler", "Host compiler options", "", cmVS7FlagTable::UserFollowing | cmVS7FlagTable::SpaceAppendable }, + // Select the CUDA runtime library. + { "CudaRuntime", "cudart=none", "No CUDA runtime library", "None", 0 }, + { "CudaRuntime", "cudart=shared", "Shared/dynamic CUDA runtime library", + "Shared", 0 }, + { "CudaRuntime", "cudart=static", "Static CUDA runtime library", "Static", + 0 }, + { "CudaRuntime", "cudart", "CUDA runtime library", "", + cmVS7FlagTable::UserFollowing }, + { 0, 0, 0, 0, 0 } }; |