From 71a2664ebb0fd6a8d56eadee058aecc431a40594 Mon Sep 17 00:00:00 2001 From: Gregor Jasny Date: Tue, 6 Jul 2021 09:22:52 +0200 Subject: 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. --- Source/cmGlobalXCodeGenerator.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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: -- cgit v0.12