summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorGregor Jasny <gregor.jasny@logmein.com>2021-07-06 07:22:52 (GMT)
committerGregor Jasny <gregor.jasny@logmein.com>2021-07-06 07:29:17 (GMT)
commit71a2664ebb0fd6a8d56eadee058aecc431a40594 (patch)
tree7f22892734861f9853b700783a64b0b0da0e1bd0 /Source
parentb8186351dcebfe90c0a89ff7d7f0b0c2cad96cb0 (diff)
downloadCMake-71a2664ebb0fd6a8d56eadee058aecc431a40594.zip
CMake-71a2664ebb0fd6a8d56eadee058aecc431a40594.tar.gz
CMake-71a2664ebb0fd6a8d56eadee058aecc431a40594.tar.bz2
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 693a11c..77403b0 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: