summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio10Generator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-12-07 16:10:28 (GMT)
committerBrad King <brad.king@kitware.com>2016-12-07 16:10:28 (GMT)
commitd42d3780ac1d62c7733affb9fd168a4e803634a2 (patch)
tree563974bf50b06aabda1b9924682cb78194378bcf /Source/cmGlobalVisualStudio10Generator.cxx
parenta0d64ecf8b9eac29cbfeb7461cf3bcb1688f7aa7 (diff)
parent27431de1627d95329712f4af8362fcaf2667aad5 (diff)
downloadCMake-d42d3780ac1d62c7733affb9fd168a4e803634a2.zip
CMake-d42d3780ac1d62c7733affb9fd168a4e803634a2.tar.gz
CMake-d42d3780ac1d62c7733affb9fd168a4e803634a2.tar.bz2
Merge branch 'vs-fix-standalone-Windows7.1SDK-toolset' into vs-fix-standalone-Windows7.1SDK-toolset-for-master
Diffstat (limited to 'Source/cmGlobalVisualStudio10Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio10Generator.cxx11
1 files changed, 10 insertions, 1 deletions
diff --git a/Source/cmGlobalVisualStudio10Generator.cxx b/Source/cmGlobalVisualStudio10Generator.cxx
index d992aef..dde6e82 100644
--- a/Source/cmGlobalVisualStudio10Generator.cxx
+++ b/Source/cmGlobalVisualStudio10Generator.cxx
@@ -98,7 +98,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->DefaultClFlagTable = cmVS10CLFlagTable;
this->DefaultCSharpFlagTable = cmVS10CSharpFlagTable;
this->DefaultLibFlagTable = cmVS10LibFlagTable;