CPACK_DEBIAN_PACKAGE_DESCRIPTION does not respect documentation
Since !3541 (merged), according to CPACK_DEBIAN_PACKAGE_DESCRIPTION
documentation CPACK_PACKAGE_DESCRIPTION_SUMMARY
should be used as description if none of the following variables is set:
- CPACK_DEBIAN_<COMPONENT>_DESCRIPTION
- CPACK_DEBIAN_PACKAGE_DESCRIPTION
- CPACK_COMPONENT_<compName>_DESCRIPTION
- CPACK_PACKAGE_DESCRIPTION
- CPACK_PACKAGE_DESCRIPTION_FILE
Steps to reproduce:
cmake_minimum_required(VERSION 3.16)
project(foo LANGUAGES NONE)
set(CPACK_GENERATOR DEB)
set(CPACK_PACKAGE_CONTACT "foo@bar.com")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Summary of package should be used as description")
include(CPack)
mkdir build && cd build && cmake ..
cmake --build . --target package
The output dpkg --info foo-0.1.1-Linux.deb
is:
[...]
Description: Summary of package should be used as description
DESCRIPTION
===========
.
This is an installer created using CPack (https://cmake.org). No additional installation instructions provided.
.
.
[...]
It means that CPACK_PACKAGE_DESCRIPTION_FILE
is read even if the variable was not explicitly set.