MCPcopy Create free account
hub / github.com/Kitware/CMake / GetLinkClosure

Method GetLinkClosure

Source/cmGeneratorTarget_Link.cxx:128–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126};
127
128cmGeneratorTarget::LinkClosure const* cmGeneratorTarget::GetLinkClosure(
129 std::string const& config) const
130{
131 // There is no link implementation for targets that cannot compile sources.
132 if (!this->CanCompileSources()) {
133 static LinkClosure const empty = { {}, {} };
134 return ∅
135 }
136
137 std::string key(cmSystemTools::UpperCase(config));
138 auto i = this->LinkClosureMap.find(key);
139 if (i == this->LinkClosureMap.end()) {
140 LinkClosure lc;
141 this->ComputeLinkClosure(config, lc);
142 LinkClosureMapType::value_type entry(key, lc);
143 i = this->LinkClosureMap.insert(entry).first;
144 }
145 return &i->second;
146}
147
148class cmTargetSelectLinker
149{

Callers 6

GetLinkerLanguageMethod · 0.95
requireDeviceLinkingFunction · 0.80
AddImplicitLinkInfoMethod · 0.80
GetRPathMethod · 0.80
WriteLibOptionsMethod · 0.80
ComputeLinkOptionsMethod · 0.80

Calls 5

CanCompileSourcesMethod · 0.95
ComputeLinkClosureMethod · 0.95
findMethod · 0.45
endMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected