diff options
author | Brad King <brad.king@kitware.com> | 2014-06-04 17:09:35 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-06-04 17:16:37 (GMT) |
commit | 98afb4549f66c692eeec8bbc8a1f7b333d3051a5 (patch) | |
tree | 28479e8e5b6545df3589041e0024eaf5f12d1005 /Source/cmGlobalVisualStudio10Generator.h | |
parent | 3e9f6e36f3f5fd50303d1b71fc153c0ae8f916f5 (diff) | |
download | CMake-98afb4549f66c692eeec8bbc8a1f7b333d3051a5.zip CMake-98afb4549f66c692eeec8bbc8a1f7b333d3051a5.tar.gz CMake-98afb4549f66c692eeec8bbc8a1f7b333d3051a5.tar.bz2 |
VS: Split user- and generator-provided PlatformToolset
Divide the cmGlobalVisualStudio10Generator "PlatformToolset" member into
two members representing the generator-selected default toolset and the
user-specified CMAKE_GENERATOR_TOOLSET value. Prefer the user-specified
value, if any, and then fall back to the generator-selected default.
Diffstat (limited to 'Source/cmGlobalVisualStudio10Generator.h')
-rw-r--r-- | Source/cmGlobalVisualStudio10Generator.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmGlobalVisualStudio10Generator.h b/Source/cmGlobalVisualStudio10Generator.h index ede6b1b..0360fa6 100644 --- a/Source/cmGlobalVisualStudio10Generator.h +++ b/Source/cmGlobalVisualStudio10Generator.h @@ -66,7 +66,7 @@ public: bool IsMasmEnabled() const { return this->MasmEnabled; } /** The toolset name for the target platform. */ - const char* GetPlatformToolset(); + const char* GetPlatformToolset() const; /** * Where does this version of Visual Studio look for macros for the @@ -99,7 +99,8 @@ protected: std::string const& GetMSBuildCommand(); - std::string PlatformToolset; + std::string GeneratorToolset; + std::string DefaultPlatformToolset; bool ExpressEdition; bool MasmEnabled; @@ -122,5 +123,6 @@ private: virtual std::string FindMSBuildCommand(); virtual std::string FindDevEnvCommand(); virtual std::string GetVSMakeProgram() { return this->GetMSBuildCommand(); } + void AddVSPlatformToolsetDefinition(cmMakefile* mf) const; }; #endif |