From 29f63129be470e44b99f498576e311111648a620 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 22 Feb 2022 15:31:37 -0500 Subject: CPack: Format CPACK_THREADS compression methods as a definition list Prepare to add more entries beyond `xz`. --- Modules/CPack.cmake | 17 +++++++++++------ 1 file 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 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -- cgit v0.12