summaryrefslogtreecommitdiffstats
path: root/Source/cmComputeLinkInformation.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-09-15 17:30:07 (GMT)
committerBrad King <brad.king@kitware.com>2008-09-15 17:30:07 (GMT)
commit0fe06c812660cd2e030b9f7f53e5e06a27d96f27 (patch)
tree85d534a091cce543b4e08f34b1f8c5fc99adad86 /Source/cmComputeLinkInformation.cxx
parent76c5697a16245450af9ae7e510cb1a66cce1ab94 (diff)
downloadCMake-0fe06c812660cd2e030b9f7f53e5e06a27d96f27.zip
CMake-0fe06c812660cd2e030b9f7f53e5e06a27d96f27.tar.gz
CMake-0fe06c812660cd2e030b9f7f53e5e06a27d96f27.tar.bz2
ENH: Keep target information in final link line
In cmComputeLinkInformation items in the final link line returned by GetItems now contain a pointer to their corresponding cmTarget if they were produced by a target. This makes available the set of all targets linked.
Diffstat (limited to 'Source/cmComputeLinkInformation.cxx')
-rw-r--r--Source/cmComputeLinkInformation.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmComputeLinkInformation.cxx b/Source/cmComputeLinkInformation.cxx
index 0b02ae1..331e3fd 100644
--- a/Source/cmComputeLinkInformation.cxx
+++ b/Source/cmComputeLinkInformation.cxx
@@ -594,7 +594,7 @@ void cmComputeLinkInformation::AddItem(std::string const& item, cmTarget* tgt)
std::string exe = tgt->GetFullPath(config, this->UseImportLibrary,
true);
linkItem += exe;
- this->Items.push_back(Item(linkItem, true));
+ this->Items.push_back(Item(linkItem, true, tgt));
this->Depends.push_back(exe);
}
else
@@ -1020,7 +1020,7 @@ void cmComputeLinkInformation::AddTargetItem(std::string const& item,
}
// Now add the full path to the library.
- this->Items.push_back(Item(item, true));
+ this->Items.push_back(Item(item, true, target));
}
//----------------------------------------------------------------------------