BUG: Fix CMP0003 wrong-config link dir support
This fixes a dumb logic error introduced by the centralization of link interface computation. It prevented link directories from alternate configurations from getting listed by the OLD behavior of CMP0003 for targets linked as transitive dependencies.
This commit is contained in:
parent
94a4a614ca
commit
afbd595e85
|
@ -3797,7 +3797,7 @@ bool cmTarget::ComputeLinkInterface(const char* config, LinkInterface& iface)
|
||||||
if(li->second != cmTarget::GENERAL && li->second != linkType)
|
if(li->second != cmTarget::GENERAL && li->second != linkType)
|
||||||
{
|
{
|
||||||
// Support OLD behavior for CMP0003.
|
// Support OLD behavior for CMP0003.
|
||||||
if(doLibraries && !emittedWrongConfig.insert(item).second)
|
if(doLibraries && emittedWrongConfig.insert(item).second)
|
||||||
{
|
{
|
||||||
iface.WrongConfigLibraries.push_back(item);
|
iface.WrongConfigLibraries.push_back(item);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue