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

Method PackageComponentsAllInOne

Source/CPack/cmCPackArchiveGenerator.cxx:490–512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

488}
489
490int cmCPackArchiveGenerator::PackageComponentsAllInOne()
491{
492 // reset the package file names
493 this->packageFileNames.clear();
494 this->packageFileNames.emplace_back(this->GetArchiveFileName());
495
496 cmCPackLogger(cmCPackLog::LOG_VERBOSE,
497 "Packaging all groups in one package..."
498 "(CPACK_COMPONENTS_ALL_GROUPS_IN_ONE_PACKAGE is set)"
499 << std::endl);
500 DECLARE_AND_OPEN_ARCHIVE(packageFileNames[0], archive);
501
502 Deduplicator deduplicator;
503
504 // The ALL COMPONENTS in ONE package case
505 for (auto& comp : this->Components) {
506 // Add the files of this component to the archive
507 this->addOneComponentToArchive(archive, &(comp.second), &deduplicator);
508 }
509
510 // archive goes out of scope so it will finalized and closed.
511 return 1;
512}
513
514int cmCPackArchiveGenerator::PackageFiles()
515{

Callers 1

PackageFilesMethod · 0.95

Calls 4

GetArchiveFileNameMethod · 0.95
emplace_backMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected