ENH: do not warn about frameworks as they are not affected by -L anyway

This commit is contained in:
Bill Hoffman 2008-03-19 09:14:10 -04:00
parent ce7ee70872
commit 9ea3cbc7b7
1 changed files with 5 additions and 2 deletions

View File

@ -1177,8 +1177,11 @@ void cmComputeLinkInformation::AddUserItem(std::string const& item)
}
else if(item[0] == '-' || item[0] == '$' || item[0] == '`')
{
// This is a linker option provided by the user.
this->OldUserFlagItems.push_back(item);
if(item.find("-framework") != 0)
{
// This is a linker option provided by the user.
this->OldUserFlagItems.push_back(item);
}
// Restore the target link type since this item does not specify
// one.