summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CPack/tests/THREADED/test.cmake
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 /Tests/RunCMake/CPack/tests/THREADED/test.cmake
parentb71d385ed466363c64af82fb0bffd5f4fdc4b1c3 (diff)
downloadCMake-b3bacf0152c15d46b5392c622b46dbfa2ad8c6c2.zip
CMake-b3bacf0152c15d46b5392c622b46dbfa2ad8c6c2.tar.gz
CMake-b3bacf0152c15d46b5392c622b46dbfa2ad8c6c2.tar.bz2
cmCPackArchiveGenerator: support multithreaded compression
Diffstat (limited to 'Tests/RunCMake/CPack/tests/THREADED/test.cmake')
-rw-r--r--Tests/RunCMake/CPack/tests/THREADED/test.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/CPack/tests/THREADED/test.cmake b/Tests/RunCMake/CPack/tests/THREADED/test.cmake
new file mode 100644
index 0000000..78fc9e9
--- /dev/null
+++ b/Tests/RunCMake/CPack/tests/THREADED/test.cmake
@@ -0,0 +1,7 @@
+install(FILES CMakeLists.txt DESTINATION foo COMPONENT test)
+
+set(CPACK_ARCHIVE_THREADS 2)
+
+if(PACKAGING_TYPE STREQUAL "COMPONENT")
+ set(CPACK_COMPONENTS_ALL test)
+endif()