diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-05-10 19:43:58 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-05-10 19:47:38 +0300 |
commit | a18f4d2bc69aa4707fb0efa92d28297d06be060e (patch) | |
tree | 1ca0bfde3265c507fcb46de8e2422b84fe748e92 /source | |
parent | c1e4aaa289f64748093d4cd7590f5836b8873466 (diff) |
CMake: optional date/time overrides for reproducible builds
Diffstat (limited to 'source')
-rw-r--r-- | source/creator/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt index b7d8381639d..daba01e33c7 100644 --- a/source/creator/CMakeLists.txt +++ b/source/creator/CMakeLists.txt @@ -186,6 +186,9 @@ if(WITH_BUILDINFO) add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/_buildinfo.h COMMAND ${CMAKE_COMMAND} -DSOURCE_DIR=${CMAKE_SOURCE_DIR} + # overrides only used when non-empty strings + -DBUILD_DATE=${BUILDINFO_OVERRIDE_DATE} + -DBUILD_TIME=${BUILDINFO_OVERRIDE_TIME} -P ${CMAKE_SOURCE_DIR}/build_files/cmake/buildinfo.cmake) # buildinfo.h is a generated file |