Merge topic 'xcode-lastupgradecheck'

13610474 Xcode: Set LastUpgradeCheck to current Xcode version (#15817)
This commit is contained in:
Brad King 2015-11-02 09:09:49 -05:00 committed by CMake Topic Stage
commit 06ed3eb9e9

View File

@ -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",