diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2020-01-24 13:50:43 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2020-01-24 13:50:43 (GMT) |
commit | baec299ecd350f0b82489e928a770c3ce081958a (patch) | |
tree | 6744d4bde46e41e742d9afb0fd481afed17948fc /Modules/Internal | |
parent | 74588925229cb4b3df319fd084c2481c2f962fbc (diff) | |
download | CMake-baec299ecd350f0b82489e928a770c3ce081958a.zip CMake-baec299ecd350f0b82489e928a770c3ce081958a.tar.gz CMake-baec299ecd350f0b82489e928a770c3ce081958a.tar.bz2 |
CPack: Fix regression in Deb description
Fixes: #20254
Diffstat (limited to 'Modules/Internal')
-rw-r--r-- | Modules/Internal/CPack/CPackDeb.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/Internal/CPack/CPackDeb.cmake b/Modules/Internal/CPack/CPackDeb.cmake index 3927b1a..97906ca 100644 --- a/Modules/Internal/CPack/CPackDeb.cmake +++ b/Modules/Internal/CPack/CPackDeb.cmake @@ -540,7 +540,8 @@ function(cpack_deb_prepare_package_vars) # Ok, description has set. According to the `Debian Policy Manual`_ the frist # line is a pacakge summary. Try to get it as well... # See also: https://www.debian.org/doc/debian-policy/ch-controlfields.html#description - elseif(CPACK_PACKAGE_DESCRIPTION_SUMMARY) + elseif(CPACK_PACKAGE_DESCRIPTION_SUMMARY AND + NOT CPACK_PACKAGE_DESCRIPTION_SUMMARY STREQUAL CPACK_DEFAULT_PACKAGE_DESCRIPTION_SUMMARY) # Merge summary w/ the detailed description string(PREPEND CPACK_DEBIAN_PACKAGE_DESCRIPTION "${CPACK_PACKAGE_DESCRIPTION_SUMMARY}\n") endif() |