summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.h
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2015-01-09 15:33:00 (GMT)
committerBrad King <brad.king@kitware.com>2015-01-12 14:36:25 (GMT)
commitd811d238abe2dcd04cebd7ee4c3f07f4b6da093f (patch)
tree2ae34f0ac5f6a84452a359d36d22e5760791b557 /Source/cmSystemTools.h
parentdf16dcfb4478bb05932a1abb0e42433e60f1a565 (diff)
downloadCMake-d811d238abe2dcd04cebd7ee4c3f07f4b6da093f.zip
CMake-d811d238abe2dcd04cebd7ee4c3f07f4b6da093f.tar.gz
CMake-d811d238abe2dcd04cebd7ee4c3f07f4b6da093f.tar.bz2
cmSystemTools: use an enumeration for compression formats
Juggling 3 booleans was unwieldy.
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r--Source/cmSystemTools.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h
index 47d2771..09ceea6 100644
--- a/Source/cmSystemTools.h
+++ b/Source/cmSystemTools.h
@@ -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