cmGeneratorTarget: Port cmOptionalLinkImplementation
This commit is contained in:
parent
520ca0ff6c
commit
7f6beddae3
|
@ -5560,7 +5560,7 @@ cmGeneratorTarget::GetLinkImplementation(const std::string& config) const
|
|||
}
|
||||
|
||||
std::string CONFIG = cmSystemTools::UpperCase(config);
|
||||
cmOptionalLinkImplementation& impl = this->LinkImplMap[CONFIG][this->Target];
|
||||
cmOptionalLinkImplementation& impl = this->LinkImplMap[CONFIG][this];
|
||||
if(!impl.LibrariesDone)
|
||||
{
|
||||
impl.LibrariesDone = true;
|
||||
|
@ -5840,7 +5840,7 @@ cmGeneratorTarget::GetLinkImplementationLibrariesInternal(
|
|||
return &hm.begin()->second;
|
||||
}
|
||||
|
||||
cmOptionalLinkImplementation& impl = hm[head->Target];
|
||||
cmOptionalLinkImplementation& impl = hm[head];
|
||||
if(!impl.LibrariesDone)
|
||||
{
|
||||
impl.LibrariesDone = true;
|
||||
|
|
|
@ -647,7 +647,7 @@ private:
|
|||
const std::string& config) const;
|
||||
|
||||
struct HeadToLinkImplementationMap:
|
||||
public std::map<cmTarget const*, cmOptionalLinkImplementation> {};
|
||||
public std::map<cmGeneratorTarget const*, cmOptionalLinkImplementation> {};
|
||||
typedef std::map<std::string,
|
||||
HeadToLinkImplementationMap> LinkImplMapType;
|
||||
mutable LinkImplMapType LinkImplMap;
|
||||
|
|
Loading…
Reference in New Issue