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:
Brad King 2009-07-07 10:57:02 -04:00
parent 94a4a614ca
commit afbd595e85
1 changed files with 1 additions and 1 deletions

View File

@ -3797,7 +3797,7 @@ bool cmTarget::ComputeLinkInterface(const char* config, LinkInterface& iface)
if(li->second != cmTarget::GENERAL && li->second != linkType)
{
// Support OLD behavior for CMP0003.
if(doLibraries && !emittedWrongConfig.insert(item).second)
if(doLibraries && emittedWrongConfig.insert(item).second)
{
iface.WrongConfigLibraries.push_back(item);
}