PRE_INSTALL_SCRIPT
From Get docs
Cmake/docs/3.21/prop tgt/pre install script
PRE_INSTALL_SCRIPT
Deprecated install support.
The PRE_INSTALL_SCRIPT
and POST_INSTALL_SCRIPT properties are the old way to specify CMake scripts to run before and after installing a target. They are used only when the old INSTALL_TARGETS
command is used to install the target. Use the install() command instead.
© 2000–2021 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.21/prop_tgt/PRE_INSTALL_SCRIPT.html