summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudioGeneratorOptions.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-03-07 21:19:22 (GMT)
committerBrad King <brad.king@kitware.com>2017-03-10 15:19:57 (GMT)
commit253594d0aec0cbe34694cac59ef1a8e42a532118 (patch)
tree29fbe76be9f47076af03470cde40cc219580d98c /Source/cmVisualStudioGeneratorOptions.h
parent4def02a3852eb211e26951819646f8cd8ee6c00c (diff)
downloadCMake-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/cmVisualStudioGeneratorOptions.h')
-rw-r--r--Source/cmVisualStudioGeneratorOptions.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmVisualStudioGeneratorOptions.h b/Source/cmVisualStudioGeneratorOptions.h
index e19d2dd..6722503 100644
--- a/Source/cmVisualStudioGeneratorOptions.h
+++ b/Source/cmVisualStudioGeneratorOptions.h
@@ -67,6 +67,14 @@ public:
bool UsingUnicode() const;
bool UsingSBCS() const;
+ enum CudaRuntime
+ {
+ CudaRuntimeStatic,
+ CudaRuntimeShared,
+ CudaRuntimeNone
+ };
+ CudaRuntime GetCudaRuntime() const;
+
bool IsDebug() const;
bool IsWinRt() const;
bool IsManaged() const;