While cleaning up the docs for the new CPACK_PRE_BUILD_SCRIPTS
, CPACK_POST_BUILD_SCRIPTS
and CPACK_PACKAGE_FILES
variables added by !4846, I noticed that we already have CPACK_INSTALL_SCRIPTS
. This seems to already provide the capabilities that CPACK_PRE_BUILD_SCRIPTS
aims to cover. The naming for CPACK_PRE_BUILD_SCRIPTS
is clearer now that we also have post-build capabilities, but this raises some questions:
- Do we have the same guaranteed variables set for
CPACK_PRE_BUILD_SCRIPTS
as we do forCPACK_INSTALL_SCRIPTS
? This would includeCMAKE_CURRENT_SOURCE_DIR
,CMAKE_CURRENT_BINARY_DIR
andCMAKE_INSTALL_PREFIX
. - Should we update the docs for
CPACK_INSTALL_SCRIPTS
to say to prefer to useCPACK_PRE_BUILD_SCRIPTS
instead? - Should we mark
CPACK_INSTALL_SCRIPTS
as deprecated?
Some related background material:
Cc: @zaufi