diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2015-01-08 21:56:33 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2015-01-09 15:35:01 (GMT) |
commit | df16dcfb4478bb05932a1abb0e42433e60f1a565 (patch) | |
tree | a9118455e89a8785d189f150b32409c980212cd6 /Source/cmSystemTools.cxx | |
parent | b0a5d3932d2a6633d05eca3eb7fd632f433dca05 (diff) | |
download | CMake-df16dcfb4478bb05932a1abb0e42433e60f1a565.zip CMake-df16dcfb4478bb05932a1abb0e42433e60f1a565.tar.gz CMake-df16dcfb4478bb05932a1abb0e42433e60f1a565.tar.bz2 |
cmake -E tar: add support for .xz files with 'J'
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r-- | Source/cmSystemTools.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 1c8c387..cd63347 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -1482,7 +1482,8 @@ bool cmSystemTools::IsPathToFramework(const char* path) bool cmSystemTools::CreateTar(const char* outFileName, const std::vector<std::string>& files, - bool gzip, bool bzip2, bool verbose) + bool gzip, bool bzip2, bool xz, + bool verbose) { #if defined(CMAKE_BUILD_WITH_CMAKE) std::string cwd = cmSystemTools::GetCurrentWorkingDirectory(); @@ -1498,7 +1499,8 @@ bool cmSystemTools::CreateTar(const char* outFileName, } cmArchiveWrite a(fout, (gzip? cmArchiveWrite::CompressGZip : (bzip2? cmArchiveWrite::CompressBZip2 : - cmArchiveWrite::CompressNone)), + (xz? cmArchiveWrite::CompressXZ : + cmArchiveWrite::CompressNone))), cmArchiveWrite::TypeTAR); a.SetVerbose(verbose); for(std::vector<std::string>::const_iterator i = files.begin(); |