diff options
author | Brad King <brad.king@kitware.com> | 2021-07-13 12:15:29 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-07-13 12:16:26 (GMT) |
commit | ca85c6913d5876a707ef5ae0503e260db4e732c9 (patch) | |
tree | 672eab007b8db2e75ca123ff23fb0725391e1e43 /Modules/Internal | |
parent | ae5d100e2fcddd60f78aad0a2171cde313c7cd15 (diff) | |
parent | 805fa791d10c31ba629306328c2f491708e3e88b (diff) | |
download | CMake-ca85c6913d5876a707ef5ae0503e260db4e732c9.zip CMake-ca85c6913d5876a707ef5ae0503e260db4e732c9.tar.gz CMake-ca85c6913d5876a707ef5ae0503e260db4e732c9.tar.bz2 |
Merge topic 'cpack-deb-post-ops'
805fa791d1 CPack/DEB: Avoid overriding user-provided `postinst` and `postrm`
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6335
Diffstat (limited to 'Modules/Internal')
-rw-r--r-- | Modules/Internal/CPack/CPackDeb.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Internal/CPack/CPackDeb.cmake b/Modules/Internal/CPack/CPackDeb.cmake index 2ceab10..967ad7b 100644 --- a/Modules/Internal/CPack/CPackDeb.cmake +++ b/Modules/Internal/CPack/CPackDeb.cmake @@ -673,7 +673,7 @@ function(cpack_deb_prepare_package_vars) if(CPACK_ADD_LDCONFIG_CALL) set(CPACK_DEBIAN_GENERATE_POSTINST 1) set(CPACK_DEBIAN_GENERATE_POSTRM 1) - foreach(f IN LISTS PACKAGE_CONTROL_EXTRA) + foreach(f IN LISTS CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA) get_filename_component(n "${f}" NAME) if(n STREQUAL "postinst") set(CPACK_DEBIAN_GENERATE_POSTINST 0) |