cmTarget: Remove 'head' argument from GetLinkInformation
No call sites use it anyway. Co-Author: Stephen Kelly <steveire@gmail.com>
This commit is contained in:
parent
56aed7005a
commit
06328dd58e
|
@ -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;
|
||||
|
|
|
@ -44,11 +44,9 @@ class cmGeneratorTarget;
|
|||
class cmTargetTraceDependencies;
|
||||
|
||||
struct cmTargetLinkInformationMap:
|
||||
public std::map<std::pair<cmTarget const* , std::string>,
|
||||
cmComputeLinkInformation*>
|
||||
public std::map<std::string, cmComputeLinkInformation*>
|
||||
{
|
||||
typedef std::map<std::pair<cmTarget const* , std::string>,
|
||||
cmComputeLinkInformation*> derived;
|
||||
typedef std::map<std::string, cmComputeLinkInformation*> derived;
|
||||
cmTargetLinkInformationMap() {}
|
||||
cmTargetLinkInformationMap(cmTargetLinkInformationMap const& r);
|
||||
~cmTargetLinkInformationMap();
|
||||
|
@ -442,8 +440,8 @@ public:
|
|||
* install tree. For example: "\@rpath/" or "\@loader_path/". */
|
||||
std::string GetInstallNameDirForInstallTree() const;
|
||||
|
||||
cmComputeLinkInformation* GetLinkInformation(const std::string& config,
|
||||
cmTarget const* head = 0) const;
|
||||
cmComputeLinkInformation*
|
||||
GetLinkInformation(const std::string& config) const;
|
||||
|
||||
// Get the properties
|
||||
cmPropertyMap &GetProperties() const { return this->Properties; }
|
||||
|
|
Loading…
Reference in New Issue