mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 06:59:01 -06:00
cmSystemTools: use an enumeration for compression formats
Juggling 3 booleans was unwieldy.
This commit is contained in:
@@ -383,12 +383,19 @@ public:
|
||||
static void EnableVSConsoleOutput();
|
||||
|
||||
/** Create tar */
|
||||
enum cmTarCompression
|
||||
{
|
||||
TarCompressGZip,
|
||||
TarCompressBZip2,
|
||||
TarCompressXZ,
|
||||
TarCompressNone
|
||||
};
|
||||
static bool ListTar(const char* outFileName,
|
||||
bool gzip, bool verbose);
|
||||
bool verbose);
|
||||
static bool CreateTar(const char* outFileName,
|
||||
const std::vector<std::string>& files, bool gzip,
|
||||
bool bzip2, bool xz, bool verbose);
|
||||
static bool ExtractTar(const char* inFileName, bool gzip,
|
||||
const std::vector<std::string>& files,
|
||||
cmTarCompression compressType, bool verbose);
|
||||
static bool ExtractTar(const char* inFileName,
|
||||
bool verbose);
|
||||
// This should be called first thing in main
|
||||
// it will keep child processes from inheriting the
|
||||
|
||||
Reference in New Issue
Block a user