From 0a5fe2793a385034d3a676d2dc4cef3122e9bbea Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 30 Jul 2014 14:06:07 -0400 Subject: [PATCH] VS: Add internal API to get system name and version Add cmGlobalVisualStudio10Generator::GetSystemName and GetSystemVersion methods to access the corresponding members publicly. --- Source/cmGlobalVisualStudio10Generator.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/cmGlobalVisualStudio10Generator.h b/Source/cmGlobalVisualStudio10Generator.h index 4d7ff806e..b042559fa 100644 --- a/Source/cmGlobalVisualStudio10Generator.h +++ b/Source/cmGlobalVisualStudio10Generator.h @@ -64,6 +64,12 @@ public: /** The toolset name for the target platform. */ const char* GetPlatformToolset() const; + /** Return the CMAKE_SYSTEM_NAME. */ + std::string const& GetSystemName() const { return this->SystemName; } + + /** Return the CMAKE_SYSTEM_VERSION. */ + std::string const& GetSystemVersion() const { return this->SystemVersion; } + /** * Where does this version of Visual Studio look for macros for the * current user? Returns the empty string if this version of Visual