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.
This commit is contained in:
Gregor Jasny
2021-07-06 09:22:52 +02:00
parent b8186351dc
commit 71a2664ebb

View File

@@ -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: