diff options
author | Brad King <brad.king@kitware.com> | 2014-07-29 15:42:30 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-07-31 18:08:43 (GMT) |
commit | 3abd150ce9df03e24a903dedc952339b58ba79cb (patch) | |
tree | 3d6f13c43dfb8bcfe19f46cf339f445f85f9b786 /Source/cmGlobalVisualStudio10Generator.cxx | |
parent | c1580a9217ee2447433c76eca2ad0e6be6347a57 (diff) | |
download | CMake-3abd150ce9df03e24a903dedc952339b58ba79cb.zip CMake-3abd150ce9df03e24a903dedc952339b58ba79cb.tar.gz CMake-3abd150ce9df03e24a903dedc952339b58ba79cb.tar.bz2 |
VS: Save WindowsPhone and WindowsStore system internally
Add boolean members to the VS >= 10 global generator to save
whether CMAKE_SYSTEM_NAME is WindowsPhone or WindowsStore
without having to repeat a string comparison.
Inspired-by: Gilles Khouzam <gillesk@microsoft.com>
Diffstat (limited to 'Source/cmGlobalVisualStudio10Generator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudio10Generator.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudio10Generator.cxx b/Source/cmGlobalVisualStudio10Generator.cxx index 4007789..5189569 100644 --- a/Source/cmGlobalVisualStudio10Generator.cxx +++ b/Source/cmGlobalVisualStudio10Generator.cxx @@ -97,6 +97,8 @@ cmGlobalVisualStudio10Generator::cmGlobalVisualStudio10Generator( this->ExpressEdition = cmSystemTools::ReadRegistryValue( "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VCExpress\\10.0\\Setup\\VC;" "ProductDir", vc10Express, cmSystemTools::KeyWOW64_32); + this->SystemIsWindowsPhone = false; + this->SystemIsWindowsStore = false; this->MasmEnabled = false; this->MSBuildCommandInitialized = false; } @@ -148,6 +150,14 @@ bool cmGlobalVisualStudio10Generator::SetSystemName(std::string const& s, //---------------------------------------------------------------------------- bool cmGlobalVisualStudio10Generator::InitializeSystem(cmMakefile*) { + if(this->SystemName == "WindowsPhone") + { + this->SystemIsWindowsPhone = true; + } + else if(this->SystemName == "WindowsStore") + { + this->SystemIsWindowsStore = true; + } return true; } |