Name of TYPE option to file(ARCHIVE_CREATE) is too generic, related docs incomplete/unclear
The naming of the TYPE
option for file(ARCHIVE_CREATE)
is overly generic. It controls the type of compression, so a better name for the option would probably be COMPRESSION
.
The current documentation also doesn't mention that the compression type cannot be given for all formats. The 7zip
and zip
formats already imply the type of compression, so the compression type cannot be explicitly specified for those. The docs could also be a bit clearer about what the default format is too, so maybe address that as part of updating the docs for this issue.