prusa3d / Prusa-Firmware-MMU

Other
32 stars 15 forks source link

cmake: Set source epoch from the HEAD commit #291

Closed wavexx closed 1 year ago

wavexx commented 1 year ago

Allow to set the source epoch of the build with PROJECT_VERSION_TIMESTAMP.

When unset fetch the commit timestamp of the current HEAD automatically instead of leaving the source as 0.

We have no use for this on the MMU, but it doesn't hurt to follow what we do on the MK3.