[CMake] Setting CPACK_PACKAGE_FILE_NAME per COMPONENT

Rob Harris rob.harris at gmail.com
Fri Jan 30 07:05:06 EST 2015


On 01/29/2015 11:24 PM, Iosif Neitzke wrote:
> Where for a single run of CPack, each component name produces a
> corresponding named .deb file or ...?
Yes. Exactly.
> Have you tried using CPACK_PROJECT_CONFIG_FILE [0]?  This allows you
> to set a few options at packaging time which can change the final
> output package file name.
>
> [0] http://www.cmake.org/cmake/help/v3.1/module/CPack.html
Maybe I'm missing something, but how does that help me if there isn't an 
accessible variable that contains the name of the component actively 
being packaged?

-R



More information about the CMake mailing list