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

Method CollectExports

Source/cmExportInstallFileGenerator.cxx:365–383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363}
364
365bool cmExportInstallFileGenerator::CollectExports(
366 std::function<void(cmTargetExport const*)> const& visitor)
367{
368 auto pred = [&](std::unique_ptr<cmTargetExport> const& te) -> bool {
369 if (te->NamelinkOnly) {
370 return true;
371 }
372 if (this->ExportedTargets.insert(te->Target).second) {
373 visitor(te.get());
374 return true;
375 }
376
377 this->ComplainAboutDuplicateTarget(te->Target->GetName());
378 return false;
379 };
380
381 auto const& targets = this->GetExportSet()->GetTargetExports();
382 return std::all_of(targets.begin(), targets.end(), pred);
383}
384
385bool cmExportInstallFileGenerator::PopulateInterfaceProperties(
386 cmTargetExport const* targetExport, ImportPropertyMap& properties)

Callers

nothing calls this directly

Calls 7

GetExportSetMethod · 0.95
insertMethod · 0.45
getMethod · 0.45
GetNameMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected