BUG: When recognizing flags on link lines, we must still treat -l as a library.
This commit is contained in:
parent
4292f45160
commit
006f2b069a
|
@ -312,7 +312,7 @@ int cmComputeLinkDepends::AddLinkEntry(std::string const& item)
|
||||||
LinkEntry& entry = this->EntryList[index];
|
LinkEntry& entry = this->EntryList[index];
|
||||||
entry.Item = item;
|
entry.Item = item;
|
||||||
entry.Target = this->FindTargetToLink(entry.Item.c_str());
|
entry.Target = this->FindTargetToLink(entry.Item.c_str());
|
||||||
entry.IsFlag = !entry.Target && item[0] == '-';
|
entry.IsFlag = !entry.Target && item[0] == '-' && item[1] == 'l';
|
||||||
|
|
||||||
// If the item has dependencies queue it to follow them.
|
// If the item has dependencies queue it to follow them.
|
||||||
if(entry.Target)
|
if(entry.Target)
|
||||||
|
|
Loading…
Reference in New Issue