Packagers may now set their own rpm package file names or request that rpmbuild tool chooses one for them. It also supports handing of situations where one spec file may produce multiple rpm packages.
12 lines
395 B
CMake
12 lines
395 B
CMake
set(CPACK_RPM_COMPONENT_INSTALL "ON")
|
|
|
|
set(CPACK_RPM_FILE_NAME "RPM-DEFAULT")
|
|
set(CPACK_RPM_PKG_2_PACKAGE_NAME "second")
|
|
set(CPACK_RPM_PKG_3_FILE_NAME "pkg_3_abc.rpm")
|
|
|
|
install(FILES CMakeLists.txt DESTINATION foo COMPONENT pkg_1)
|
|
install(FILES CMakeLists.txt DESTINATION foo COMPONENT pkg_2)
|
|
install(FILES CMakeLists.txt DESTINATION foo COMPONENT pkg_3)
|
|
|
|
set(CPACK_PACKAGE_NAME "custom_names")
|