Przeglądaj źródła

Merge topic 'xcode-lastupgradecheck'

13610474 Xcode: Set LastUpgradeCheck to current Xcode version (#15817)
Brad King 10 lat temu
rodzic
commit
06ed3eb9e9
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3 0
      Source/cmGlobalXCodeGenerator.cxx

+ 3 - 0
Source/cmGlobalXCodeGenerator.cxx

@@ -3398,6 +3398,9 @@ bool cmGlobalXCodeGenerator
     group = this->CreateObject(cmXCodeObject::ATTRIBUTE_GROUP);
     group->AddAttribute("BuildIndependentTargetsInParallel",
                         this->CreateString("YES"));
+    std::ostringstream v;
+    v << std::setfill('0') << std::setw(4) << XcodeVersion * 10;
+    group->AddAttribute("LastUpgradeCheck", this->CreateString(v.str()));
     this->RootObject->AddAttribute("attributes", group);
     if (this->XcodeVersion >= 32)
       this->RootObject->AddAttribute("compatibilityVersion",