summaryrefslogtreecommitdiffstats
path: root/Source/cmArchiveWrite.cxx
diff options
context:
space:
mode:
authorBartosz Kosiorek <gang65@poczta.onet.pl>2019-03-11 22:26:04 (GMT)
committerBartosz Kosiorek <gang65@poczta.onet.pl>2019-05-22 01:46:55 (GMT)
commit53cb1f2d04bc9ca7bd50bd3b1a60dc933eab0777 (patch)
treec0c9a75e128ad3962065264948f41c16a9d7296b /Source/cmArchiveWrite.cxx
parent0bf53483295a4b7de358e8b85ad44866d89633c5 (diff)
downloadCMake-53cb1f2d04bc9ca7bd50bd3b1a60dc933eab0777.zip
CMake-53cb1f2d04bc9ca7bd50bd3b1a60dc933eab0777.tar.gz
CMake-53cb1f2d04bc9ca7bd50bd3b1a60dc933eab0777.tar.bz2
cmake: Teach cmake -E tar command, Zstandard compression
Fixes #18657
Diffstat (limited to 'Source/cmArchiveWrite.cxx')
-rw-r--r--Source/cmArchiveWrite.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmArchiveWrite.cxx b/Source/cmArchiveWrite.cxx
index 177ba02..359d57a 100644
--- a/Source/cmArchiveWrite.cxx
+++ b/Source/cmArchiveWrite.cxx
@@ -137,6 +137,13 @@ cmArchiveWrite::cmArchiveWrite(std::ostream& os, Compress c,
return;
}
break;
+ case CompressZstd:
+ if (archive_write_add_filter_zstd(this->Archive) != ARCHIVE_OK) {
+ this->Error = "archive_write_add_filter_zstd: ";
+ this->Error += cm_archive_error_string(this->Archive);
+ return;
+ }
+ break;
}
#if !defined(_WIN32) || defined(__CYGWIN__)
if (archive_read_disk_set_standard_lookup(this->Disk) != ARCHIVE_OK) {