mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 12:49:50 -05:00
cmake -E tar: add support for .xz files with 'J'
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user