summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-12-07 11:17:49 -0500
committerBrad King <brad.king@kitware.com>2016-12-07 11:17:49 -0500
commitf243a34cce8e4591e913566d86c1a28dc3df7996 (patch)
tree609e0e4a13535a9530a60c20411b60614997d5e8
parent0d89c1e87cac3ae02bd2c9864588accbd406e919 (diff)
parent27431de1627d95329712f4af8362fcaf2667aad5 (diff)
downloadcmake-f243a34cce8e4591e913566d86c1a28dc3df7996.tar.gz
Merge branch 'vs-fix-standalone-Windows7.1SDK-toolset' into release
-rw-r--r--Source/cmGlobalVisualStudio10Generator.cxx11
1 files changed, 10 insertions, 1 deletions
diff --git a/Source/cmGlobalVisualStudio10Generator.cxx b/Source/cmGlobalVisualStudio10Generator.cxx
index caaac87f09..502c93afd1 100644
--- a/Source/cmGlobalVisualStudio10Generator.cxx
+++ b/Source/cmGlobalVisualStudio10Generator.cxx
@@ -93,7 +93,16 @@ cmGlobalVisualStudio10Generator::cmGlobalVisualStudio10Generator(
this->SystemIsWindowsPhone = false;
this->SystemIsWindowsStore = false;
this->MSBuildCommandInitialized = false;
- this->DefaultPlatformToolset = "v100";
+ {
+ std::string envPlatformToolset;
+ if (cmSystemTools::GetEnv("PlatformToolset", envPlatformToolset) &&
+ envPlatformToolset == "Windows7.1SDK") {
+ // We are running from a Windows7.1SDK command prompt.
+ this->DefaultPlatformToolset = "Windows7.1SDK";
+ } else {
+ this->DefaultPlatformToolset = "v100";
+ }
+ }
this->Version = VS10;
}