[CMake] Customizing component package file name

Piotr Sipika piotr.sipika at gmail.com
Wed Jun 21 14:03:10 EDT 2017


Hello all,

I'm trying to package a set of components, each in its own binary RPM.
I'm setting CPACK_RPM_<component>_PACKAGE_FILE_NAME to be something like:
${CPACK_RPM_PACKAGE_NAME}-<component>-${CPACK_RPM_PACKAGE_VERSION}-${CPACK_SYSTEM_NAME}

but the resulting CPACK_OUTPUT_FILE_NAME ends up being something equivalent to:

${CPACK_RPM_PACKAGE_NAME}-${CPACK_RPM_PACKAGE_VERSION}-${CPACK_SYSTEM_NAME}-<component>.rpm

Am I going about this the right way?
Is setting CPACK_RPM_<component>_PACKAGE_FILE_NAME the right way to
have a component-specific .rpm name?

Thanks,
Piotr


More information about the CMake mailing list