BUG: cmComputeLinkDepends should not follow the dependencies of executables.
This commit is contained in:
parent
8a83f09637
commit
ed5661821c
@ -263,6 +263,8 @@ void cmComputeLinkDepends::FollowLinkEntry(BFSEntry const& qe)
|
|||||||
if(entry.Target)
|
if(entry.Target)
|
||||||
{
|
{
|
||||||
// Follow the target dependencies.
|
// Follow the target dependencies.
|
||||||
|
if(entry.Target->GetType() != cmTarget::EXECUTABLE)
|
||||||
|
{
|
||||||
if(entry.Target->IsImported())
|
if(entry.Target->IsImported())
|
||||||
{
|
{
|
||||||
this->AddImportedLinkEntries(depender_index, entry.Target);
|
this->AddImportedLinkEntries(depender_index, entry.Target);
|
||||||
@ -273,6 +275,7 @@ void cmComputeLinkDepends::FollowLinkEntry(BFSEntry const& qe)
|
|||||||
entry.Target->GetOriginalLinkLibraries());
|
entry.Target->GetOriginalLinkLibraries());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Follow the old-style dependency list.
|
// Follow the old-style dependency list.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user