mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-03 22:30:29 +00:00
BUG: cmComputeLinkDepends should not follow the dependencies of executables.
This commit is contained in:
@@ -263,14 +263,17 @@ void cmComputeLinkDepends::FollowLinkEntry(BFSEntry const& qe)
|
||||
if(entry.Target)
|
||||
{
|
||||
// Follow the target dependencies.
|
||||
if(entry.Target->IsImported())
|
||||
if(entry.Target->GetType() != cmTarget::EXECUTABLE)
|
||||
{
|
||||
this->AddImportedLinkEntries(depender_index, entry.Target);
|
||||
}
|
||||
else
|
||||
{
|
||||
this->AddTargetLinkEntries(depender_index,
|
||||
entry.Target->GetOriginalLinkLibraries());
|
||||
if(entry.Target->IsImported())
|
||||
{
|
||||
this->AddImportedLinkEntries(depender_index, entry.Target);
|
||||
}
|
||||
else
|
||||
{
|
||||
this->AddTargetLinkEntries(depender_index,
|
||||
entry.Target->GetOriginalLinkLibraries());
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user