Explorar o código

Merge topic 'vs-17.11' into release-3.29

dfe0f3f358 VS: Fix '-T version=14.4x' under VS 17.1x

Acked-by: Kitware Robot <[email protected]>
Merge-request: !9622
Brad King hai 1 ano
pai
achega
be53dcdda6
Modificáronse 1 ficheiros con 2 adicións e 4 borrados
  1. 2 4
      Source/cmGlobalVisualStudio10Generator.cxx

+ 2 - 4
Source/cmGlobalVisualStudio10Generator.cxx

@@ -225,10 +225,8 @@ bool cmGlobalVisualStudio10Generator::SetGeneratorToolset(
                                   versionToolsetRegex.match(2));
                                   versionToolsetRegex.match(2));
         // Hard-code special cases for toolset versions whose first
         // Hard-code special cases for toolset versions whose first
         // three digits do not match their toolset name.
         // three digits do not match their toolset name.
-        if (platformToolset == "v143"_s && versionToolset == "v144"_s &&
-            // VS 17.10 toolset v143 version 14.40.
-            (this->GeneratorToolsetVersion == "14.40"_s ||
-             cmHasLiteralPrefix(this->GeneratorToolsetVersion, "14.40."))) {
+        // The v143 toolset reserves versions 14.30 through 14.49.
+        if (platformToolset == "v143"_s && versionToolset == "v144"_s) {
           versionToolset = "v143";
           versionToolset = "v143";
         }
         }
       } else {
       } else {