VS: Save system name and version in global generator members
Add to cmGlobalVisualStudio10Generator members for SystemName and SystemVersion and populate them in SetSystemName.
This commit is contained in:
parent
f188845237
commit
d0dd28fa92
|
@ -128,6 +128,8 @@ cmGlobalVisualStudio10Generator::SetGeneratorToolset(std::string const& ts,
|
||||||
bool cmGlobalVisualStudio10Generator::SetSystemName(std::string const& s,
|
bool cmGlobalVisualStudio10Generator::SetSystemName(std::string const& s,
|
||||||
cmMakefile* mf)
|
cmMakefile* mf)
|
||||||
{
|
{
|
||||||
|
this->SystemName = s;
|
||||||
|
this->SystemVersion = mf->GetSafeDefinition("CMAKE_SYSTEM_VERSION");
|
||||||
if(this->PlatformName == "Itanium" || this->PlatformName == "x64")
|
if(this->PlatformName == "Itanium" || this->PlatformName == "x64")
|
||||||
{
|
{
|
||||||
if(this->IsExpressEdition() && !this->Find64BitTools(mf))
|
if(this->IsExpressEdition() && !this->Find64BitTools(mf))
|
||||||
|
|
|
@ -99,6 +99,8 @@ protected:
|
||||||
|
|
||||||
std::string GeneratorToolset;
|
std::string GeneratorToolset;
|
||||||
std::string DefaultPlatformToolset;
|
std::string DefaultPlatformToolset;
|
||||||
|
std::string SystemName;
|
||||||
|
std::string SystemVersion;
|
||||||
bool ExpressEdition;
|
bool ExpressEdition;
|
||||||
bool MasmEnabled;
|
bool MasmEnabled;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue