Use cmake TIMESTAMP for BUILD_DATE+TIME
this simplifies code a lot
and even makes it more portable to other platforms
TIMESTAMP is available since cmake-2.8.11 ; blender already requires
cmake>=3.5 so that is fine.
Differential D5760
Use cmake TIMESTAMP for BUILD_DATE+TIME Authored by Bernhard M. Wiedemann (bmwiedemann) on Sep 11 2019, 3:58 PM. Tags None Subscribers None
Details Use cmake TIMESTAMP for BUILD_DATE+TIME TIMESTAMP is available since cmake-2.8.11 ; blender already requires
Diff Detail
Event TimelineComment Actions Patch LGTM, wouldn't mind double-check from @Campbell Barton (campbellbarton) though.
Comment Actions It does with cmake>=3.8 as documented in https://reproducible-builds.org/docs/source-date-epoch/#reading-the-variable Comment Actions I’ll do it this week (and update the api doc generation script accordingly to use Blender's build date instead, too). But this is not a top-priority task either, we all have tens of things to do… Comment Actions Current minimum CMake version is 3.5, although this is usable w/o SOURCE_DATE_EPOCH, so seems OK. | ||||||