mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-26 08:08:24 -05:00
CPack: add CPACK_THREADS variable to control compression threads
This allows setting how many threads the compressor will use. Currently only implemented for XZ when using system's lzma library. Fixes: #21715
This commit is contained in:
@@ -54,7 +54,8 @@ public:
|
||||
|
||||
/** Construct with output stream to which to write archive. */
|
||||
cmArchiveWrite(std::ostream& os, Compress c = CompressNone,
|
||||
std::string const& format = "paxr", int compressionLevel = 0);
|
||||
std::string const& format = "paxr", int compressionLevel = 0,
|
||||
int numThreads = 1);
|
||||
|
||||
~cmArchiveWrite();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user