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

Method GetLinkInterfaceClosure

Source/cmGeneratorTarget_Link.cxx:300–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298}
299
300std::vector<cmGeneratorTarget const*>
301cmGeneratorTarget::GetLinkInterfaceClosure(std::string const& config,
302 cmGeneratorTarget const* headTarget,
303 UseTo usage) const
304{
305 cmGlobalGenerator* gg = this->GetLocalGenerator()->GetGlobalGenerator();
306 std::vector<cmGeneratorTarget const*> tgts;
307 std::set<cmGeneratorTarget const*> emitted;
308 if (cmLinkInterfaceLibraries const* iface =
309 this->GetLinkInterfaceLibraries(config, headTarget, usage)) {
310 for (cmLinkItem const& lib : iface->Libraries) {
311 processILibs(config, headTarget, lib, gg, tgts, emitted, usage);
312 }
313 }
314 return tgts;
315}
316
317std::vector<cmGeneratorTarget const*> const&
318cmGeneratorTarget::GetLinkImplementationClosure(std::string const& config,

Calls 4

GetLocalGeneratorMethod · 0.95
processILibsFunction · 0.85
GetGlobalGeneratorMethod · 0.45

Tested by

no test coverage detected