Przeglądaj źródła

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.
Gregor Jasny 4 lat temu
rodzic
commit
71a2664ebb
1 zmienionych plików z 5 dodań i 1 usunięć
  1. 5 1
      Source/cmGlobalXCodeGenerator.cxx

+ 5 - 1
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: