summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-07-07 14:57:02 (GMT)
committerBrad King <brad.king@kitware.com>2009-07-07 14:57:02 (GMT)
commitafbd595e859f1b7df946c77408adcef18c744ff5 (patch)
tree3c74678ef64da72afd1a539aca28cf6dd1a38f82 /Source/cmTarget.cxx
parent94a4a614ca62b2415fa06cbd1a3f4410f822bff1 (diff)
downloadCMake-afbd595e859f1b7df946c77408adcef18c744ff5.zip
CMake-afbd595e859f1b7df946c77408adcef18c744ff5.tar.gz
CMake-afbd595e859f1b7df946c77408adcef18c744ff5.tar.bz2
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.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index 4643d30..ae17b40 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);
}