summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-05-27 16:50:55 -0400
committerBrad King <brad.king@kitware.com>2021-05-27 17:06:27 -0400
commita60141feaafcbbe3c46211095ec71c797e6fbcd4 (patch)
tree7aa2a695de950745d0ff924bcf05ff0f323ece7f
parent13d112ea03f2b068da1f7ac3239a42a6cff94eda (diff)
downloadcmake-a60141feaafcbbe3c46211095ec71c797e6fbcd4.tar.gz
VS: Add special case for '-T version=14.29.16.10' under VS 16.10
Extend the table of special cases from commit 58a50a3a0a (VS: Fix '-T version=14.28' under VS 16.9, 2021-03-11, v3.19.7~1^2~1). Add a special case for the name VS 16.11 will use for VS 16.10's default toolset, so that it can be used with VS 16.10 too. Using '-T version=14.29.16.10' actually works under VS 16.10 without this change, but only because there is only one 14.29 toolset so the two-component prefix happens to match the right one. Make it explicit. Issue: #21922
-rw-r--r--Source/cmGlobalVisualStudioVersionedGenerator.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudioVersionedGenerator.cxx b/Source/cmGlobalVisualStudioVersionedGenerator.cxx
index 9a9a4658f4..c11ab1bf82 100644
--- a/Source/cmGlobalVisualStudioVersionedGenerator.cxx
+++ b/Source/cmGlobalVisualStudioVersionedGenerator.cxx
@@ -504,6 +504,9 @@ cmGlobalVisualStudioVersionedGenerator::FindAuxToolset(
if (version == "14.28.16.9" && vcToolsetVersion == "14.28.29910") {
return AuxToolset::Default;
}
+ if (version == "14.29.16.10" && vcToolsetVersion == "14.29.30037") {
+ return AuxToolset::Default;
+ }
// The first two components of the default toolset version typically
// match the name used by later VS versions for the SxS props files.