| 243 | } |
| 244 | |
| 245 | void 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 | |
| 264 | cmExportFileGenerator::ExportInfo cmExportInstallFileGenerator::FindExportInfo( |
| 265 | cmGeneratorTarget const* target) const |
nothing calls this directly
no test coverage detected