diff options
author | Gregor Jasny <gjasny@googlemail.com> | 2015-10-30 21:03:52 (GMT) |
---|---|---|
committer | Gregor Jasny <gjasny@googlemail.com> | 2015-10-30 21:28:04 (GMT) |
commit | 136104740663b3310616bec51b2cec7f807715ce (patch) | |
tree | 678121e6f57f3ed10c0bba7c5e50bce81b1f70ea /Source/cmGlobalXCodeGenerator.cxx | |
parent | a375702eaa961a496b9420a836c336d884e9cbf3 (diff) | |
download | CMake-136104740663b3310616bec51b2cec7f807715ce.zip CMake-136104740663b3310616bec51b2cec7f807715ce.tar.gz CMake-136104740663b3310616bec51b2cec7f807715ce.tar.bz2 |
Xcode: Set LastUpgradeCheck to current Xcode version (#15817)
This prevents the project settings upgrade warning.
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index da8c814..2df07cb 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/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", |