summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-03-14 13:30:29 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-03-14 13:30:29 (GMT)
commitdafa80ecc03eea8c75371e98e626679a3f96d5a9 (patch)
treed825776cca015efb00cae89033088313537679b1 /Modules
parent76845bdbf4ad5e3272710d64ac763b5f28e37567 (diff)
parent13778cd3be03de966c006b7acc6c1ec07019ab07 (diff)
downloadCMake-dafa80ecc03eea8c75371e98e626679a3f96d5a9.zip
CMake-dafa80ecc03eea8c75371e98e626679a3f96d5a9.tar.gz
CMake-dafa80ecc03eea8c75371e98e626679a3f96d5a9.tar.bz2
Merge topic 'cpack-deb-compression-types'
13778cd3 CPackDeb: Add option to set compression type
Diffstat (limited to 'Modules')
-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