summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cmCPackArchiveGenerator.h
diff options
context:
space:
mode:
authorAtılhan Emre Dursunoğlu <atilhan.dursunoglu@sparsetechnology.com>2023-10-09 10:13:23 (GMT)
committerAtılhan Emre Dursunoğlu <atilhan.dursunoglu@sparsetechnology.com>2023-10-26 15:20:48 (GMT)
commit770efceccb6f1e9ea1e452b7c79227f94996a751 (patch)
treedeee65838232dee921373c8f6377be264466d78d /Source/CPack/cmCPackArchiveGenerator.h
parent35424aab2e35ae5e4e3762feae26a0c305c73b9d (diff)
downloadCMake-770efceccb6f1e9ea1e452b7c79227f94996a751.zip
CMake-770efceccb6f1e9ea1e452b7c79227f94996a751.tar.gz
CMake-770efceccb6f1e9ea1e452b7c79227f94996a751.tar.bz2
CPack: Avoid adding duplicate files to archive when combining components
Fixes: #25280
Diffstat (limited to 'Source/CPack/cmCPackArchiveGenerator.h')
-rw-r--r--Source/CPack/cmCPackArchiveGenerator.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/CPack/cmCPackArchiveGenerator.h b/Source/CPack/cmCPackArchiveGenerator.h
index 8a9bbc6..b8a1afa 100644
--- a/Source/CPack/cmCPackArchiveGenerator.h
+++ b/Source/CPack/cmCPackArchiveGenerator.h
@@ -47,6 +47,8 @@ private:
std::string GetArchiveComponentFileName(const std::string& component,
bool isGroupName);
+ class Deduplicator;
+
protected:
int InitializeInternal() override;
/**
@@ -54,9 +56,11 @@ protected:
* to the provided (already opened) archive.
* @param[in,out] archive the archive object
* @param[in] component the component whose file will be added to archive
+ * @param[in] deduplicator file deduplicator utility.
*/
int addOneComponentToArchive(cmArchiveWrite& archive,
- cmCPackComponent* component);
+ cmCPackComponent* component,
+ Deduplicator* deduplicator);
/**
* The main package file method.