CPack: missing docs for variables
In answering a question on Slack, there seem to be a lot of undocumented CPack variables. We should document the stable ones so that users can actually find them when needed. A list from looking at the generator-agnostic cmCPackGenerator.cxx
source (probably not exhaustive) is included here. Note that some of these may be internal or only of use from a generator (useful for completing #18566 anyways?) to the basic implementation. Other generators probably have other undocumented variables.
CPACK_REMOVE_TOPLEVEL_DIRECTORY
CPACK_TOPLEVEL_DIRECTORY
CPACK_TEMPORARY_DIRECTORY
CPACK_TEMPORARY_INSTALL_DIRECTORY
CPACK_OUTPUT_FILE_PREFIX
CPACK_OUTPUT_FILE_NAME
CPACK_OUTPUT_FILE_PATH
CPACK_TEMPORARY_PACKAGE_FILE_NAME
CPACK_INSTALL_DIRECTORY
CPACK_NATIVE_INSTALL_DIRECTORY
CPACK_PACKAGE_DESCRIPTION_FILE
CPACK_PACKAGE_DESCRIPTION
CPACK_DEFAULT_PACKAGE_DESCRIPTION_FILE
CPACK_PACKAGE_CHECKSUM
CPACK_PRE_BUILD_SCRIPTS
CPACK_INSTALL_COMMANDS
CPACK_IGNORE_FILES
CPACK_INSTALLED_DIRECTORIES
CPACK_INSTALL_SCRIPTS
CPACK_INSTALL_SCRIPT
CPACK_INSTALL_CMAKE_PROJECTS
CPACK_BUILD_CONFIG
CPACK_<COMPONENT>_INSTALL_TYPES
CPACK_MONOLITHIC_INSTALL
CPACK_COMPONENTS_<COMPONENT>
CPACK_STRIP_FILES
CPACK_ABSOLUTE_DESTINATION_FILES_<COMPONENT_INSTALL_DIR_NAME_SUFFIX>
CPACK_INCLUDE_TOPLEVEL_DIRECTORY
CPACK_POST_BUILD_SCRIPTS
CPACK_PROJECT_CONFIG_FILE
See also: #20524