diff options
author | Brad King <brad.king@kitware.com> | 2017-02-08 21:05:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-03-10 15:19:53 (GMT) |
commit | 5164e9a6510137eaac1c7b736a6b24fe02ce17a9 (patch) | |
tree | ef9e7554cb68377b3aebe09ae4e1265646f5f42c /Source/cmGlobalVisualStudio10Generator.h | |
parent | 83bf980c9601c2e5d6a6247867606539d8a14528 (diff) | |
download | CMake-5164e9a6510137eaac1c7b736a6b24fe02ce17a9.zip CMake-5164e9a6510137eaac1c7b736a6b24fe02ce17a9.tar.gz CMake-5164e9a6510137eaac1c7b736a6b24fe02ce17a9.tar.bz2 |
VS: Provide an option to specify CUDA toolset version
The NVIDIA CUDA Toolkit provides MSBuild toolset files for integration
with Visual Studio. Multiple versions may be installed so we need a way
to tell our VS generators which CUDA toolset to use. Extend the
`CMAKE_GENERATOR_TOOLSET` specification to provide a `cuda=...` field
specifying the version number.
Diffstat (limited to 'Source/cmGlobalVisualStudio10Generator.h')
-rw-r--r-- | Source/cmGlobalVisualStudio10Generator.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudio10Generator.h b/Source/cmGlobalVisualStudio10Generator.h index 149dcba..581ad11 100644 --- a/Source/cmGlobalVisualStudio10Generator.h +++ b/Source/cmGlobalVisualStudio10Generator.h @@ -53,6 +53,10 @@ public: /** The toolset host architecture name (e.g. x64 for 64-bit host tools). */ const char* GetPlatformToolsetHostArchitecture() const; + /** The cuda toolset version. */ + const char* GetPlatformToolsetCuda() const; + std::string const& GetPlatformToolsetCudaString() const; + /** Return the CMAKE_SYSTEM_NAME. */ std::string const& GetSystemName() const { return this->SystemName; } @@ -118,6 +122,7 @@ protected: std::string GeneratorToolset; std::string GeneratorToolsetHostArchitecture; + std::string GeneratorToolsetCuda; std::string DefaultPlatformToolset; std::string WindowsTargetPlatformVersion; std::string SystemName; |