| 363 | } |
| 364 | |
| 365 | bool 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 | |
| 385 | bool cmExportInstallFileGenerator::PopulateInterfaceProperties( |
| 386 | cmTargetExport const* targetExport, ImportPropertyMap& properties) |
nothing calls this directly
no test coverage detected