CPACK_RPM - CPACK_RPM_DEBUGINFO_PACKAGE =on causes CPACK_PACKAGE_FILE_NAME to be ignored
With:
SET(CPACK_PACKAGE_FILE_NAME "${CPACK_RPM_PACKAGE_NAME}-${VERSION}-${RPM}-${CMAKE_SYSTEM_PROCESSOR}")
and
SET(CPACK_RPM_${COMPONENT_UPPER}_DEBUGINFO_PACKAGE ON)
for the non common/devel/shared components caused So the CPACK_RPM_PACKAGE_NAME was ignored for server,client and test.
MariaDB-5.5.55-fedora-x86_64-common.rpm
MariaDB-5.5.55-fedora-x86_64-devel.rpm
MariaDB-5.5.55-fedora-x86_64-shared.rpm
MariaDB-client-5.5.55-1.fc25.x86_64.rpm
MariaDB-client-debuginfo-5.5.55-1.fc25.x86_64.rpm
MariaDB-server-5.5.55-1.fc25.x86_64.rpm
MariaDB-server-debuginfo-5.5.55-1.fc25.x86_64.rpm
MariaDB-test-5.5.55-1.fc25.x86_64.rpm
MariaDB-test-debuginfo-5.5.55-1.fc25.x86_64.rpm
Also as a feature request - having a CPACK_DEBUGIFNO_PACKAGE_FILE_NAME for setting the debug package RPMs would be nice to make these consistent. Perhaps appending "-debuginfo" to CPACK_RPM_PACKAGE_NAME and using the resulting CPACK_PACKAGE_FILE_NAME value for the as the resulting name for debuginfo packages as default.
cmake version 3.7.2