From afbd595e859f1b7df946c77408adcef18c744ff5 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 7 Jul 2009 10:57:02 -0400 Subject: [PATCH] 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. --- Source/cmTarget.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 4643d30c0..ae17b4047 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -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); }