diff options
author | Brad King <brad.king@kitware.com> | 2014-06-12 20:10:00 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-06-23 13:14:45 (GMT) |
commit | 06328dd58ee3de5d716b0d2b259927da2e173c1d (patch) | |
tree | 4029c8d1af2f9181b392af0fd55e0feb840f8d82 /Source/cmTarget.cxx | |
parent | 56aed7005ae17e979f4635240539041e66d9220a (diff) | |
download | CMake-06328dd58ee3de5d716b0d2b259927da2e173c1d.zip CMake-06328dd58ee3de5d716b0d2b259927da2e173c1d.tar.gz CMake-06328dd58ee3de5d716b0d2b259927da2e173c1d.tar.bz2 |
cmTarget: Remove 'head' argument from GetLinkInformation
No call sites use it anyway.
Co-Author: Stephen Kelly <steveire@gmail.com>
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 566a16a..f6a92bd 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -6943,19 +6943,17 @@ void cmTarget::CheckPropertyCompatibility(cmComputeLinkInformation *info, //---------------------------------------------------------------------------- cmComputeLinkInformation* -cmTarget::GetLinkInformation(const std::string& config, - cmTarget const* head) const +cmTarget::GetLinkInformation(const std::string& config) const { - cmTarget const* headTarget = head ? head : this; // Lookup any existing information for this configuration. - TargetConfigPair key(headTarget, cmSystemTools::UpperCase(config)); + std::string key(cmSystemTools::UpperCase(config)); cmTargetLinkInformationMap::iterator i = this->LinkInformation.find(key); if(i == this->LinkInformation.end()) { // Compute information for this configuration. cmComputeLinkInformation* info = - new cmComputeLinkInformation(this, config, headTarget); + new cmComputeLinkInformation(this, config, this); if(!info || !info->Compute()) { delete info; |