summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorGregor Jasny <gregor.jasny@logmein.com>2021-07-06 09:22:52 +0200
committerGregor Jasny <gregor.jasny@logmein.com>2021-07-06 09:29:17 +0200
commit71a2664ebb0fd6a8d56eadee058aecc431a40594 (patch)
tree7f22892734861f9853b700783a64b0b0da0e1bd0 /Source
parentb8186351dcebfe90c0a89ff7d7f0b0c2cad96cb0 (diff)
downloadcmake-71a2664ebb0fd6a8d56eadee058aecc431a40594.tar.gz
Xcode: Ignore deprecated build system
With Xcode 13 the key to suppress the check has changed. Tested with Xcode 12.5 and 13.0-beta2.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index 693a11c9a1..77403b076a 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -4617,7 +4617,11 @@ void cmGlobalXCodeGenerator::OutputXCodeWorkspaceSettings(
switch (this->XcodeBuildSystem) {
case BuildSystem::One:
xout.Element("string", "Original");
- xout.Element("key", "DisableBuildSystemDeprecationWarning");
+ if (this->XcodeVersion >= 130) {
+ xout.Element("key", "DisableBuildSystemDeprecationDiagnostic");
+ } else {
+ xout.Element("key", "DisableBuildSystemDeprecationWarning");
+ }
xout.Element("true");
break;
case BuildSystem::Twelve: