diff options
| author | Alex Turbov <i.zaufi@gmail.com> | 2021-07-12 03:09:35 (GMT) |
|---|---|---|
| committer | Brad King <brad.king@kitware.com> | 2021-07-12 21:04:29 (GMT) |
| commit | 805fa791d10c31ba629306328c2f491708e3e88b (patch) | |
| tree | 472b2f1201eaf5014775dcd45fcd1a6a273b120a /Tests/Module/WriteCompilerDetectionHeader/main_bare.cpp | |
| parent | ac984cb5f75349fd5ed00cc52fbb5154b7bb1527 (diff) | |
| download | CMake-805fa791d10c31ba629306328c2f491708e3e88b.zip CMake-805fa791d10c31ba629306328c2f491708e3e88b.tar.gz CMake-805fa791d10c31ba629306328c2f491708e3e88b.tar.bz2 | |
CPack/DEB: Avoid overriding user-provided `postinst` and `postrm`
When a user provides `CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA` or
`CPACK_DEBIAN_<comp>_PACKAGE_CONTROL_EXTRA` variables in
`CMakeLists.txt` and the package contains dynamic libraries, the
`CPackDeb.cmake` sets `CPACK_ADD_LDCONFIG_CALL` to `1`. Later it
analyzes if defaulted `postinst`/`postrm` should be generated trying to
check if the user provides any in `CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA`
variable. However, the `foreach` loop uses the invalid variable
`PACKAGE_CONTROL_EXTRA` instead, so these files gonna be overridden.
Fix the variable name.
Fixes: #22410
Diffstat (limited to 'Tests/Module/WriteCompilerDetectionHeader/main_bare.cpp')
0 files changed, 0 insertions, 0 deletions
