summaryrefslogtreecommitdiffstats
path: root/Help/cpack_gen/archive.rst
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2020-03-31 01:44:29 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2020-04-03 11:35:35 (GMT)
commitb3bacf0152c15d46b5392c622b46dbfa2ad8c6c2 (patch)
tree0f8f14a5d516eb3baa7e11c5247fa23293420225 /Help/cpack_gen/archive.rst
parentb71d385ed466363c64af82fb0bffd5f4fdc4b1c3 (diff)
downloadCMake-b3bacf0152c15d46b5392c622b46dbfa2ad8c6c2.zip
CMake-b3bacf0152c15d46b5392c622b46dbfa2ad8c6c2.tar.gz
CMake-b3bacf0152c15d46b5392c622b46dbfa2ad8c6c2.tar.bz2
cmCPackArchiveGenerator: support multithreaded compression
Diffstat (limited to 'Help/cpack_gen/archive.rst')
-rw-r--r--Help/cpack_gen/archive.rst22
1 files changed, 22 insertions, 0 deletions
diff --git a/Help/cpack_gen/archive.rst b/Help/cpack_gen/archive.rst
index e9904ae..3656aa2 100644
--- a/Help/cpack_gen/archive.rst
+++ b/Help/cpack_gen/archive.rst
@@ -51,3 +51,25 @@ Variables specific to CPack Archive generator
Enable component packaging. If enabled (ON), then the archive generator
creates multiple packages. The default is OFF, which means that a single
package containing files of all components is generated.
+
+Variables used by CPack Archive generator
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+These variables are used by the Archive generator, but are also available to
+CPack generators which are essentially archives at their core. These include:
+
+ - :cpack_gen:`CPack Cygwin Generator`
+ - :cpack_gen:`CPack FreeBSD Generator`
+
+.. variable:: CPACK_ARCHIVE_THREADS
+
+ The number of threads to use when performing the compression. If set to
+ ``0``, the number of available cores on the machine will be used instead.
+ The default is ``1`` which limits compression to a single thread. Note that
+ not all compression modes support threading in all environments. Currently,
+ only the XZ compression may support it.
+
+.. note::
+
+ Official CMake binaries available on ``cmake.org`` ship with a ``liblzma``
+ that does not support parallel compression.