diff options
author | Brad King <brad.king@kitware.com> | 2022-02-22 20:31:37 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-02-22 20:31:37 (GMT) |
commit | 29f63129be470e44b99f498576e311111648a620 (patch) | |
tree | 43ad76b6c198f6d30fce73aadab6c52514d05063 | |
parent | 176407736ec13715f42d6a696daa5f4779eeec4c (diff) | |
download | CMake-29f63129be470e44b99f498576e311111648a620.zip CMake-29f63129be470e44b99f498576e311111648a620.tar.gz CMake-29f63129be470e44b99f498576e311111648a620.tar.bz2 |
CPack: Format CPACK_THREADS compression methods as a definition list
Prepare to add more entries beyond `xz`.
-rw-r--r-- | Modules/CPack.cmake | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/Modules/CPack.cmake b/Modules/CPack.cmake index 6650f7c..e267ed0 100644 --- a/Modules/CPack.cmake +++ b/Modules/CPack.cmake @@ -304,14 +304,19 @@ installers. The most commonly-used variables are: By default ``CPACK_THREADS`` is set to ``1``. - Currently only ``xz`` compression *may* take advantage of multiple cores. - Other compression methods ignore this value and use only one thread. + The following compression methods may take advantage of multiple cores: + + ``xz`` + Supported if CMake is built with a ``liblzma`` that supports + parallel compression. - .. versionadded:: 3.21 + .. versionadded:: 3.21 - Official CMake binaries available on ``cmake.org`` now ship - with a ``liblzma`` that supports parallel compression. - Older versions did not. + Official CMake binaries available on ``cmake.org`` now ship + with a ``liblzma`` that supports parallel compression. + Older versions did not. + + Other compression methods ignore this value and use only one thread. Variables for Source Package Generators ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |