ARCHIVE_CREATE with password


Is it possible to zip either using cmake -E tar or file(ARCHIVE_CREATE) but with encryption. I couldn’t find such a support after searching. Any suggestions would be helpful


If the documentation does not say so, it’s not possible at the moment.
In that case you can file a features request on the issue tracker.
CMake uses libarchive, which seems to support encryption at least for the ZIP format.
If you need a solution today, you need to call a command line tool like 7z yourself.

Thanks for the clarification. I was hoping that there would be some hidden experimental feature. I will raise a feature request as you suggested

Kind regards,