summaryrefslogtreecommitdiffstats
path: root/Help/cpack_gen
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2023-10-26 21:29:27 (GMT)
committerBrad King <brad.king@kitware.com>2023-11-27 15:25:43 (GMT)
commitf2a6d423da1400108327bff5a27647b6d1d90392 (patch)
tree6c98fb867c101b761cb2a60a3e2dcf319f79a2fe /Help/cpack_gen
parent907d4db558aceab9cf8f834d536e48d5c42f9108 (diff)
downloadCMake-f2a6d423da1400108327bff5a27647b6d1d90392.zip
CMake-f2a6d423da1400108327bff5a27647b6d1d90392.tar.gz
CMake-f2a6d423da1400108327bff5a27647b6d1d90392.tar.bz2
CPack/DEB: Append .deb to CPACK_DEBIAN_FILE_NAME if missing
Previously we issued an error when the `.deb` or `.ipk` suffix is missing. Instead, append the suffix `.deb` automatically. This matches the behavior of `CPACK_ARCHIVE_FILE_NAME`, to which the archive format suffix is automatically appended.
Diffstat (limited to 'Help/cpack_gen')
-rw-r--r--Help/cpack_gen/deb.rst9
1 files changed, 7 insertions, 2 deletions
diff --git a/Help/cpack_gen/deb.rst b/Help/cpack_gen/deb.rst
index 1aac279..23436de 100644
--- a/Help/cpack_gen/deb.rst
+++ b/Help/cpack_gen/deb.rst
@@ -82,8 +82,13 @@ List of CPack DEB generator specific variables:
Duplicate files get overwritten and it is up to the packager to set
the variables in a manner that will prevent such errors.
- ``<file-name>.deb``
- Use the given file name. The ``.deb`` suffix is required.
+ ``<file-name>[.deb]``
+ Use the given file name.
+
+ .. versionchanged:: 3.29
+
+ The ``.deb`` suffix will be automatically added if the file name does
+ not end in ``.deb`` or ``.ipk``. Previously the suffix was required.
``<file-name>.ipk``
.. versionadded:: 3.10