Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2016-05-10 19:43:58 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-05-10 19:47:38 +0300
commita18f4d2bc69aa4707fb0efa92d28297d06be060e (patch)
tree1ca0bfde3265c507fcb46de8e2422b84fe748e92 /source/creator
parentc1e4aaa289f64748093d4cd7590f5836b8873466 (diff)
CMake: optional date/time overrides for reproducible builds
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/CMakeLists.txt3
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