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

Method HandleMissingTarget

Source/cmExportInstallFileGenerator.cxx:245–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243}
244
245void cmExportInstallFileGenerator::HandleMissingTarget(
246 std::string& link_libs, cmGeneratorTarget const* depender,
247 cmGeneratorTarget* dependee)
248{
249 auto const& exportInfo = this->FindExportInfo(dependee);
250
251 if (exportInfo.Namespaces.size() == 1 && exportInfo.Sets.size() == 1) {
252 std::string missingTarget = *exportInfo.Namespaces.begin();
253
254 missingTarget += dependee->GetExportName();
255 link_libs += missingTarget;
256 this->MissingTargets.emplace_back(std::move(missingTarget));
257 } else {
258 // All exported targets should be known here and should be unique.
259 // This is probably user-error.
260 this->ComplainAboutMissingTarget(depender, dependee, exportInfo);
261 }
262}
263
264cmExportFileGenerator::ExportInfo cmExportInstallFileGenerator::FindExportInfo(
265 cmGeneratorTarget const* target) const

Callers

nothing calls this directly

Calls 7

FindExportInfoMethod · 0.95
moveFunction · 0.85
GetExportNameMethod · 0.80
emplace_backMethod · 0.80
sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected