Files
CMake/Tests/RunCMake/CPack/tests/THREADED/test.cmake
T
Rodolfo Lima bdf30bdad8 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
2021-01-26 16:23:37 +01:00

8 lines
165 B
CMake

install(FILES CMakeLists.txt DESTINATION foo COMPONENT test)
set(CPACK_THREADS 2)
if(PACKAGING_TYPE STREQUAL "COMPONENT")
set(CPACK_COMPONENTS_ALL test)
endif()