summaryrefslogtreecommitdiffstats
path: root/Source/cmComputeLinkDepends.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-01-30 17:15:17 (GMT)
committerBrad King <brad.king@kitware.com>2008-01-30 17:15:17 (GMT)
commited5661821c02a2ed0efe4e4abb6d5d0f6da7a17f (patch)
tree0b07b85e7790b4dbc9a984c3b3b0ba5693bf28cb /Source/cmComputeLinkDepends.cxx
parent8a83f096371ecc4f73afe43830e94899c704d5cf (diff)
downloadCMake-ed5661821c02a2ed0efe4e4abb6d5d0f6da7a17f.zip
CMake-ed5661821c02a2ed0efe4e4abb6d5d0f6da7a17f.tar.gz
CMake-ed5661821c02a2ed0efe4e4abb6d5d0f6da7a17f.tar.bz2
BUG: cmComputeLinkDepends should not follow the dependencies of executables.
Diffstat (limited to 'Source/cmComputeLinkDepends.cxx')
-rw-r--r--Source/cmComputeLinkDepends.cxx17
1 files changed, 10 insertions, 7 deletions
diff --git a/Source/cmComputeLinkDepends.cxx b/Source/cmComputeLinkDepends.cxx
index b4cb92e..6940b7c 100644
--- a/Source/cmComputeLinkDepends.cxx
+++ b/Source/cmComputeLinkDepends.cxx
@@ -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