cmGeneratorTarget: Port cmOptionalLinkImplementation

This commit is contained in:
Stephen Kelly 2015-10-25 11:37:34 +01:00
parent 520ca0ff6c
commit 7f6beddae3
2 changed files with 3 additions and 3 deletions

View File

@ -5560,7 +5560,7 @@ cmGeneratorTarget::GetLinkImplementation(const std::string& config) const
} }
std::string CONFIG = cmSystemTools::UpperCase(config); std::string CONFIG = cmSystemTools::UpperCase(config);
cmOptionalLinkImplementation& impl = this->LinkImplMap[CONFIG][this->Target]; cmOptionalLinkImplementation& impl = this->LinkImplMap[CONFIG][this];
if(!impl.LibrariesDone) if(!impl.LibrariesDone)
{ {
impl.LibrariesDone = true; impl.LibrariesDone = true;
@ -5840,7 +5840,7 @@ cmGeneratorTarget::GetLinkImplementationLibrariesInternal(
return &hm.begin()->second; return &hm.begin()->second;
} }
cmOptionalLinkImplementation& impl = hm[head->Target]; cmOptionalLinkImplementation& impl = hm[head];
if(!impl.LibrariesDone) if(!impl.LibrariesDone)
{ {
impl.LibrariesDone = true; impl.LibrariesDone = true;

View File

@ -647,7 +647,7 @@ private:
const std::string& config) const; const std::string& config) const;
struct HeadToLinkImplementationMap: struct HeadToLinkImplementationMap:
public std::map<cmTarget const*, cmOptionalLinkImplementation> {}; public std::map<cmGeneratorTarget const*, cmOptionalLinkImplementation> {};
typedef std::map<std::string, typedef std::map<std::string,
HeadToLinkImplementationMap> LinkImplMapType; HeadToLinkImplementationMap> LinkImplMapType;
mutable LinkImplMapType LinkImplMap; mutable LinkImplMapType LinkImplMap;