mirror of
https://github.com/reactos/CMake.git
synced 2024-12-13 06:16:49 +00:00
Tests: make tests pass with SOURCE_DATE_EPOCH set
Fix tests to account for commit 243aed52
(cmTimestamp: Support
SOURCE_DATE_EPOCH to override current time, 2017-01-25).
In openSUSE we are running the test-suite as part of the build and that
failed in these two places when building everything with
`SOURCE_DATE_EPOCH` set.
This commit is contained in:
parent
84963f429a
commit
5181f1f86a
@ -1,6 +1,7 @@
|
||||
set(STAMP_FILENAME "${CMAKE_CURRENT_BINARY_DIR}/FileTimestamp-Stamp")
|
||||
set(STAMP_FORMAT "%Y-%m-%d")
|
||||
|
||||
unset(ENV{SOURCE_DATE_EPOCH})
|
||||
string(TIMESTAMP timestamp1 "${STAMP_FORMAT}")
|
||||
|
||||
file(WRITE "${STAMP_FILENAME}" "foo")
|
||||
|
@ -49,6 +49,7 @@ macro(GET_DATE)
|
||||
# 01/12/2006 08:55:12
|
||||
# mm/dd/YYYY HH:MM:SS
|
||||
#
|
||||
unset(ENV{SOURCE_DATE_EPOCH})
|
||||
string(TIMESTAMP "${GD_PREFIX}OV" "%m/%d/%Y %H:%M:%S")
|
||||
|
||||
if(${GD_PREFIX}VERBOSE)
|
||||
|
Loading…
Reference in New Issue
Block a user