diff options
author | Eric NOULARD <eric.noulard@gmail.com> | 2010-08-16 18:45:05 (GMT) |
---|---|---|
committer | Eric NOULARD <eric.noulard@gmail.com> | 2010-08-16 18:45:05 (GMT) |
commit | fb41da4a6b648966e518cbe388b82bcde74f038e (patch) | |
tree | 2d2b752591d251dd1bed1553c6597532d36431dd /Source/cmArchiveWrite.cxx | |
parent | 1a3ad5c615be02cd18fe8e166b16ee15f821df72 (diff) | |
download | CMake-fb41da4a6b648966e518cbe388b82bcde74f038e.zip CMake-fb41da4a6b648966e518cbe388b82bcde74f038e.tar.gz CMake-fb41da4a6b648966e518cbe388b82bcde74f038e.tar.bz2 |
Add Compress compress support to libarchive-wrapper
Diffstat (limited to 'Source/cmArchiveWrite.cxx')
-rw-r--r-- | Source/cmArchiveWrite.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmArchiveWrite.cxx b/Source/cmArchiveWrite.cxx index 524e53e..d9e4742 100644 --- a/Source/cmArchiveWrite.cxx +++ b/Source/cmArchiveWrite.cxx @@ -63,6 +63,14 @@ cmArchiveWrite::cmArchiveWrite(std::ostream& os, Compress c, Type t): return; } break; + case CompressCompress: + if(archive_write_set_compression_compress(this->Archive) != ARCHIVE_OK) + { + this->Error = "archive_write_set_compression_compress: "; + this->Error += archive_error_string(this->Archive); + return; + } + break; case CompressGZip: if(archive_write_set_compression_gzip(this->Archive) != ARCHIVE_OK) { |