Răsfoiți Sursa

Merge topic 'vs-internal-system-apis'

0a5fe279 VS: Add internal API to get system name and version
Brad King 11 ani în urmă
părinte
comite
ba62b3495b
1 a modificat fișierele cu 6 adăugiri și 0 ștergeri
  1. 6 0
      Source/cmGlobalVisualStudio10Generator.h

+ 6 - 0
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