| 453 | } |
| 454 | |
| 455 | void cmInstallTargetGenerator::GetInstallObjectNames( |
| 456 | std::string const& config, std::vector<std::string>& objects) const |
| 457 | { |
| 458 | std::vector<cmObjectLocation> installedObjects; |
| 459 | auto storeObjectLocations = |
| 460 | [&installedObjects](cmObjectLocation const&, |
| 461 | cmObjectLocation const& install) { |
| 462 | installedObjects.emplace_back(install); |
| 463 | }; |
| 464 | this->Target->GetTargetObjectLocations(config, storeObjectLocations); |
| 465 | objects.reserve(installedObjects.size()); |
| 466 | std::string rootDir; |
| 467 | if (!this->Target->GetPropertyAsBool( |
| 468 | "INSTALL_OBJECT_ONLY_USE_DESTINATION")) { |
| 469 | rootDir = cmStrCat(computeInstallObjectDir(this->Target, config), '/'); |
| 470 | } |
| 471 | for (cmObjectLocation const& o : installedObjects) { |
| 472 | objects.emplace_back(cmStrCat(rootDir, o.GetPath())); |
| 473 | } |
| 474 | } |
| 475 | |
| 476 | std::string cmInstallTargetGenerator::GetDestination( |
| 477 | std::string const& config) const |
no test coverage detected