summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-09-15 17:46:56 (GMT)
committerBrad King <brad.king@kitware.com>2008-09-15 17:46:56 (GMT)
commitf49f1d2973039b6e706326d763950c2ecd1d3153 (patch)
tree40be2a56c0eb3a2696175b0997da7f6234793233 /Source/cmGlobalGenerator.cxx
parent434d07afe61cbcc7365ab1faca6c3420bf382437 (diff)
downloadCMake-f49f1d2973039b6e706326d763950c2ecd1d3153.zip
CMake-f49f1d2973039b6e706326d763950c2ecd1d3153.tar.gz
CMake-f49f1d2973039b6e706326d763950c2ecd1d3153.tar.bz2
ENH: Simplify NOTFOUND variable check
When looking for NOTFOUND libraries, use the direct dependencies of a target instead of all dependencies. At least one target will trigger the NOTFOUND error anyway because at least one must directly link it. This removes another use of the old-style link line computation.
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index 34f544c..d7d6c9b 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -947,7 +947,8 @@ void cmGlobalGenerator::CheckLocalGenerators()
for (cmTargets::const_iterator l = targets.begin();
l != targets.end(); l++)
{
- const cmTarget::LinkLibraryVectorType& libs=l->second.GetLinkLibraries();
+ const cmTarget::LinkLibraryVectorType& libs =
+ l->second.GetOriginalLinkLibraries();
for(cmTarget::LinkLibraryVectorType::const_iterator lib = libs.begin();
lib != libs.end(); ++lib)
{