summaryrefslogtreecommitdiff
path: root/Source/cmGlobalXCodeGenerator.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-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: