[CMake] cpack_add_component

Kyle Edwards kyle.edwards at kitware.com
Mon Mar 11 13:11:38 EDT 2019


On Mon, 2019-03-11 at 17:59 +0100, Micha Renner wrote:
> In CPack I can add a component with cpack_add_component and describe
> the component with the additional arguments of the macro.
> I can also describe the component if I use the varibales of type
> CPACK_COMPONENT_<compName>_XXX (e.g.
> CPACK_COMPONENT_<compName>_HIDDEN).
> So which one is the right way? Or doesn't matter which way I use.

The cpack_add_component() macro is merely a convenience function to set
the CPACK_COMPONENT_<compName>_XXX variables. You can use either one. I
typically use the macros.

Kyle


More information about the CMake mailing list