This code fragment looks somewhat repetitive:
set(CPACK_BINARY_DRAGNDROP ON)
set(CPACK_GENERATOR "DragNDrop")
So line 2 does not make line 1 redundant?
This code fragment looks somewhat repetitive:
set(CPACK_BINARY_DRAGNDROP ON)
set(CPACK_GENERATOR "DragNDrop")
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).