summaryrefslogtreecommitdiffstats
path: root/Modules/CPackDeb.cmake
diff options
context:
space:
mode:
authorSean D'Epagnier <sean@depagnier.com>2014-03-10 05:37:26 (GMT)
committerBrad King <brad.king@kitware.com>2014-03-14 13:29:54 (GMT)
commit13778cd3be03de966c006b7acc6c1ec07019ab07 (patch)
tree300ed6007c5e06f0b1f79836fbeddd5c5787f8ae /Modules/CPackDeb.cmake
parent82a7d54cfe75c399b66c888acfcb5ddb15af547b (diff)
downloadCMake-13778cd3be03de966c006b7acc6c1ec07019ab07.zip
CMake-13778cd3be03de966c006b7acc6c1ec07019ab07.tar.gz
CMake-13778cd3be03de966c006b7acc6c1ec07019ab07.tar.bz2
CPackDeb: Add option to set compression type
Add a CPACK_DEBIAN_COMPRESSION_TYPE option to set the compression type. Default to 'gzip' to preserve existing behavior. Use "cmake -E tar" for 'gzip', 'bzip2', and 'none'. Use system "tar" for 'lzma' and 'xz'.
Diffstat (limited to 'Modules/CPackDeb.cmake')
-rw-r--r--Modules/CPackDeb.cmake13
1 files changed, 12 insertions, 1 deletions
diff --git a/Modules/CPackDeb.cmake b/Modules/CPackDeb.cmake
index c79ef06..b210bbb 100644
--- a/Modules/CPackDeb.cmake
+++ b/Modules/CPackDeb.cmake
@@ -67,7 +67,12 @@
# * Mandatory : YES
# * Default : 'devel'
#
-# The debian package section
+# .. variable:: CPACK_DEBIAN_COMPRESSION_TYPE
+#
+# * Mandatory : YES
+# * Default : 'gzip'
+#
+# Possible values are: lzma, xz, bzip2 and gzip.
#
# .. variable:: CPACK_DEBIAN_PACKAGE_PRIORITY
#
@@ -390,6 +395,12 @@ if(NOT CPACK_DEBIAN_PACKAGE_PRIORITY)
set(CPACK_DEBIAN_PACKAGE_PRIORITY "optional")
endif()
+# Compression: (recommended)
+if(NOT CPACK_DEBIAN_COMPRESSION_TYPE)
+ set(CPACK_DEBIAN_COMPRESSION_TYPE "gzip")
+endif()
+
+
# Recommends:
# You should set: CPACK_DEBIAN_PACKAGE_RECOMMENDS