MCPcopy Index your code
hub / github.com/Kitware/CMake / GetInstallObjectNames

Method GetInstallObjectNames

Source/cmInstallTargetGenerator.cxx:455–474  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

453}
454
455void 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
476std::string cmInstallTargetGenerator::GetDestination(
477 std::string const& config) const

Callers 1

Calls 8

computeInstallObjectDirFunction · 0.85
emplace_backMethod · 0.80
reserveMethod · 0.80
GetPathMethod · 0.80
cmStrCatFunction · 0.70
sizeMethod · 0.45
GetPropertyAsBoolMethod · 0.45

Tested by

no test coverage detected