summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-07-30 18:06:07 (GMT)
committerBrad King <brad.king@kitware.com>2014-07-31 14:47:22 (GMT)
commit0a5fe2793a385034d3a676d2dc4cef3122e9bbea (patch)
tree2c0c17d0720afdcb99a5c00da9d0c0530e3950de
parentfe161dc30daf4d329e74d0586f47780b4c127ed4 (diff)
downloadCMake-0a5fe2793a385034d3a676d2dc4cef3122e9bbea.zip
CMake-0a5fe2793a385034d3a676d2dc4cef3122e9bbea.tar.gz
CMake-0a5fe2793a385034d3a676d2dc4cef3122e9bbea.tar.bz2
VS: Add internal API to get system name and version
Add cmGlobalVisualStudio10Generator::GetSystemName and GetSystemVersion methods to access the corresponding members publicly.
-rw-r--r--Source/cmGlobalVisualStudio10Generator.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudio10Generator.h b/Source/cmGlobalVisualStudio10Generator.h
index 4d7ff80..b042559 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