Skip to content

CPack: Use SOURCE_DATE_EPOCH for all timestamps in archives

Ben Stone requested to merge bens/cmake:cpack-archive-zip-timestamps into master

The CPack Archive generator uses the SOURCE_DATE_EPOCH environment variable to set the modification time for all files if set. ZIP files generated using CPack also include creation and access times, which are set by default to the current date/time. This change will set all of the file times to the SOURCE_DATE_EPOCH value to make ZIP file generation reproducible.

Merge request reports