Xcode: Remove PREBINDING attribute for Xcode 4 and above

PREBINDING is obsolete in Xcode 4 and causes warnings if present.
Do not emit it for Xcode >= 4.0
This commit is contained in:
Johan Bjork 2011-08-18 18:28:15 +02:00 committed by David Cole
parent 8971c0d8d2
commit bda4148a57
1 changed files with 1 additions and 1 deletions

View File

@ -1758,7 +1758,7 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmTarget& target,
default:
break;
}
if(this->XcodeVersion >= 22)
if(this->XcodeVersion >= 22 && this->XcodeVersion < 40)
{
buildSettings->AddAttribute("PREBINDING",
this->CreateString("NO"));