Explorar o código

Merge topic 'vs14-debug-enum-older-toolsets'

4ada475e VS: Fix VS 2015 .vcxproj debug setting for Windows7.1SDK toolset
Brad King %!s(int64=9) %!d(string=hai) anos
pai
achega
b06118f8f1
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      Source/cmVisualStudio10TargetGenerator.cxx

+ 4 - 1
Source/cmVisualStudio10TargetGenerator.cxx

@@ -44,6 +44,8 @@
 
 #include <cm_auto_ptr.hxx>
 
+static std::string const kWINDOWS_7_1_SDK = "Windows7.1SDK";
+
 cmIDEFlagTable const* cmVisualStudio10TargetGenerator::GetClFlagTable() const
 {
   if (this->MSTools) {
@@ -2363,7 +2365,8 @@ bool cmVisualStudio10TargetGenerator::ComputeLinkOptions(
     cmGlobalVisualStudio10Generator* gg =
       static_cast<cmGlobalVisualStudio10Generator*>(this->GlobalGenerator);
     const char* toolset = gg->GetPlatformToolset();
-    if (toolset && (cmHasLiteralPrefix(toolset, "v90") ||
+    if (toolset && (toolset == kWINDOWS_7_1_SDK ||
+                    cmHasLiteralPrefix(toolset, "v90") ||
                     cmHasLiteralPrefix(toolset, "v100") ||
                     cmHasLiteralPrefix(toolset, "v110") ||
                     cmHasLiteralPrefix(toolset, "v120"))) {