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:
parent
434d07afe6
commit
f49f1d2973
|
@ -947,7 +947,8 @@ void cmGlobalGenerator::CheckLocalGenerators()
|
||||||
for (cmTargets::const_iterator l = targets.begin();
|
for (cmTargets::const_iterator l = targets.begin();
|
||||||
l != targets.end(); l++)
|
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();
|
for(cmTarget::LinkLibraryVectorType::const_iterator lib = libs.begin();
|
||||||
lib != libs.end(); ++lib)
|
lib != libs.end(); ++lib)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue