From f49f1d2973039b6e706326d763950c2ecd1d3153 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 15 Sep 2008 13:46:56 -0400 Subject: 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. --- Source/cmGlobalGenerator.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- cgit v0.12