mirror of
https://github.com/isar/libmdbx.git
synced 2025-10-17 13:42:47 +08:00
mdbx: allow to predefine/override MDBX_BUILD_TIMESTAMP
for builds reproducibility.
Resolve https://github.com/erthink/libmdbx/issues/201
This commit is contained in:
@@ -750,7 +750,9 @@ endif(MDBX_INSTALL_STATIC)
|
||||
################################################################################
|
||||
|
||||
# collect options & build info
|
||||
string(TIMESTAMP MDBX_BUILD_TIMESTAMP UTC)
|
||||
if(NOT DEFINED MDBX_BUILD_TIMESTAMP)
|
||||
string(TIMESTAMP MDBX_BUILD_TIMESTAMP UTC)
|
||||
endif()
|
||||
set(MDBX_BUILD_FLAGS ${CMAKE_C_FLAGS})
|
||||
if(MDBX_BUILD_CXX)
|
||||
set(MDBX_BUILD_FLAGS ${CMAKE_CXX_FLAGS})
|
||||
|
Reference in New Issue
Block a user