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.
This commit is contained in:
Brad King 2008-09-15 13:46:56 -04:00
parent 434d07afe6
commit f49f1d2973
1 changed files with 2 additions and 1 deletions

View File

@ -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)
{