diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2014-07-09 22:21:36 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-07-29 13:48:41 (GMT) |
commit | f931a18c334bd471c22f7af4e580b2433ba14a69 (patch) | |
tree | 671a48024965cee44f98369de901da6c9957f327 /Source/cmArchiveWrite.cxx | |
parent | 38065563b6fb0093004d0c89b5de0f82a76b5a31 (diff) | |
download | CMake-f931a18c334bd471c22f7af4e580b2433ba14a69.zip CMake-f931a18c334bd471c22f7af4e580b2433ba14a69.tar.gz CMake-f931a18c334bd471c22f7af4e580b2433ba14a69.tar.bz2 |
CPack: add generators for .7z and .tar.xz (#13072, #14519)
Diffstat (limited to 'Source/cmArchiveWrite.cxx')
-rw-r--r-- | Source/cmArchiveWrite.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/cmArchiveWrite.cxx b/Source/cmArchiveWrite.cxx index 3b0ead5..a2aecac 100644 --- a/Source/cmArchiveWrite.cxx +++ b/Source/cmArchiveWrite.cxx @@ -159,7 +159,15 @@ cmArchiveWrite::cmArchiveWrite(std::ostream& os, Compress c, Type t): this->Error += cm_archive_error_string(this->Archive); return; } - break; + break; + case Type7Zip: + if(archive_write_set_format_7zip(this->Archive) != ARCHIVE_OK) + { + this->Error = "archive_write_set_format_7zip: "; + this->Error += cm_archive_error_string(this->Archive); + return; + } + break; } // do not pad the last block!! |