diff options
author | Brad King <brad.king@kitware.com> | 2008-09-15 17:46:56 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-09-15 17:46:56 (GMT) |
commit | f49f1d2973039b6e706326d763950c2ecd1d3153 (patch) | |
tree | 40be2a56c0eb3a2696175b0997da7f6234793233 /Source/cmGlobalGenerator.cxx | |
parent | 434d07afe61cbcc7365ab1faca6c3420bf382437 (diff) | |
download | CMake-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.cxx | 3 |
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) { |