mirror of
https://github.com/reactos/CMake.git
synced 2024-12-14 15:19:39 +00:00
ENH: only complain about -l stuff for CMP0003
This commit is contained in:
parent
e7948f89f9
commit
b017a02b90
@ -1187,7 +1187,11 @@ void cmComputeLinkInformation::AddUserItem(std::string const& item)
|
||||
}
|
||||
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->OldUserFlagItems.push_back(item);
|
||||
|
Loading…
Reference in New Issue
Block a user