ENH: only complain about -l stuff for CMP0003

This commit is contained in:
Bill Hoffman 2008-04-18 17:32:15 -04:00
parent e7948f89f9
commit b017a02b90
1 changed files with 5 additions and 1 deletions

View File

@ -1187,7 +1187,11 @@ void cmComputeLinkInformation::AddUserItem(std::string const& item)
} }
else if(item[0] == '-' || item[0] == '$' || item[0] == '`') else if(item[0] == '-' || item[0] == '$' || item[0] == '`')
{ {
if(item.find("-framework") != 0) // if this is a -l option then we might need to warn about
// CMP0003 so put it in OldUserFlagItems, if it is not a -l
// or -Wl,-l (-framework -pthread), then allow it without a
// CMP0003 as -L will not affect those other linker flags
if(item.find("-l") == 0 || item.find("-Wl,-l") == 0)
{ {
// This is a linker option provided by the user. // This is a linker option provided by the user.
this->OldUserFlagItems.push_back(item); this->OldUserFlagItems.push_back(item);