diff options
author | Nils Gladitz <nilsgladitz@gmail.com> | 2015-04-07 12:36:52 +0200 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-04-10 08:32:31 -0400 |
commit | d2cc580704fa4e608eae104ce5be211a229b2d64 (patch) | |
tree | fd9459775349e127095719de4252c790b781fd02 /Source/cmArchiveWrite.h | |
parent | 1264c5b2c485416128466510c42ab40a03eb0ca3 (diff) | |
download | cmake-d2cc580704fa4e608eae104ce5be211a229b2d64.tar.gz |
cmake: Teach "-E tar" command a "--format=" option
Allows specifying a libarchive defined archive format currently restricted to
7zip, gnutar, pax, paxr and zip.
The default is "paxr" (pax restricted).
Diffstat (limited to 'Source/cmArchiveWrite.h')
-rw-r--r-- | Source/cmArchiveWrite.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/Source/cmArchiveWrite.h b/Source/cmArchiveWrite.h index 17357b45da..794cb282ca 100644 --- a/Source/cmArchiveWrite.h +++ b/Source/cmArchiveWrite.h @@ -38,16 +38,10 @@ public: CompressXZ }; - /** Archive Type */ - enum Type - { - TypeTAR, - TypeZIP, - Type7Zip - }; - /** Construct with output stream to which to write archive. */ - cmArchiveWrite(std::ostream& os, Compress c = CompressNone, Type = TypeTAR); + cmArchiveWrite(std::ostream& os, Compress c = CompressNone, + std::string const& format = "paxr"); + ~cmArchiveWrite(); /** |