Must CPACK_BINARY_<generator> be set even if <generator> is set through CPACK_GENERATOR?

This code fragment looks somewhat repetitive:


So line 2 does not make line 1 redundant?

The former seems to be an option coming from include(CPack) to make it aware of the need for that package type. I think the latter just sets the default if -G is not passed to cpack.

I never set the individual CPACK_BINARY_<generator-type> variables. I only ever set CPACK_GENERATOR to the list of generators I want by default (for when I don’t pass a -G option on the cpack command line).