CPack clears out CPACK_COMPONENTS_ALL if there is only one component in it, event though the component was explicitly specified in the install commands, and CPACK_EXTERNAL_COMPONENT_INSTALL was set to 1 (I was using an external-packaging-script).
The particular line is here:
Am I supposed to add the components after i include CPack like the comment in CPack.cmake seems to suggest?
@kyle.edwards What is the CPack external generator expected to do in this case? I can sorta understand why in general we would ignore components if there is only one defined. Without it, the common case of producing a single package when components are defined might not give the expected result (it might trigger adding the component name into the package name, for example). I assume the external generator just follows that logic and doesn’t change the default behavior?