7c7efd1ed9
CPACK_* variables expect component name in upper case. CPACK_RPM_* variables expected component name to be in same case as component name. This patch adds support for CPACK_RPM_* variables with upper case component names to match the convention with CPACK_* variables and also preserves same case component names for back compatibility.
20 lines
784 B
CMake
20 lines
784 B
CMake
set(CPACK_RPM_COMPONENT_INSTALL "ON")
|
|
|
|
set(CPACK_RPM_PRE_INSTALL_SCRIPT_FILE
|
|
"${CMAKE_CURRENT_BINARY_DIR}/pre_install.sh")
|
|
set(CPACK_RPM_POST_INSTALL_SCRIPT_FILE
|
|
"${CMAKE_CURRENT_BINARY_DIR}/post_install.sh")
|
|
set(CPACK_RPM_PRE_UNINSTALL_SCRIPT_FILE
|
|
"${CMAKE_CURRENT_BINARY_DIR}/pre_uninstall.sh")
|
|
set(CPACK_RPM_POST_UNINSTALL_SCRIPT_FILE
|
|
"${CMAKE_CURRENT_BINARY_DIR}/post_uninstall.sh")
|
|
|
|
set(CPACK_RPM_foo_PRE_INSTALL_SCRIPT_FILE
|
|
"${CMAKE_CURRENT_BINARY_DIR}/pre_install_foo.sh")
|
|
set(CPACK_RPM_foo_POST_INSTALL_SCRIPT_FILE
|
|
"${CMAKE_CURRENT_BINARY_DIR}/post_install_foo.sh")
|
|
set(CPACK_RPM_foo_PRE_UNINSTALL_SCRIPT_FILE
|
|
"${CMAKE_CURRENT_BINARY_DIR}/pre_uninstall_foo.sh")
|
|
set(CPACK_RPM_foo_POST_UNINSTALL_SCRIPT_FILE
|
|
"${CMAKE_CURRENT_BINARY_DIR}/post_uninstall_foo.sh")
|