| 488 | } |
| 489 | |
| 490 | int 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 | |
| 514 | int cmCPackArchiveGenerator::PackageFiles() |
| 515 | { |
no test coverage detected