summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-01-30 13:43:21 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2017-01-30 13:43:21 (GMT)
commit5c6c766da1b30f2d886ba369a4c407e575ee1ccf (patch)
treebf001e4a08efd08516a0756736d8ccd98e4c9009 /Tests
parente6659f6323c75331f15fe93bb8d060ec03729738 (diff)
parent6c54f7b3655737406c53fa1e4fc1d8f4cc22f9f9 (diff)
downloadCMake-5c6c766da1b30f2d886ba369a4c407e575ee1ccf.zip
CMake-5c6c766da1b30f2d886ba369a4c407e575ee1ccf.tar.gz
CMake-5c6c766da1b30f2d886ba369a4c407e575ee1ccf.tar.bz2
Merge topic 'timestamp-percent'
6c54f7b3 string: Teach TIMESTAMP to treat %% as %
Diffstat (limited to 'Tests')
-rw-r--r--Tests/RunCMake/string/Timestamp-stderr.txt2
-rw-r--r--Tests/RunCMake/string/Timestamp.cmake2
2 files changed, 2 insertions, 2 deletions
diff --git a/Tests/RunCMake/string/Timestamp-stderr.txt b/Tests/RunCMake/string/Timestamp-stderr.txt
index c12b070..653974c 100644
--- a/Tests/RunCMake/string/Timestamp-stderr.txt
+++ b/Tests/RunCMake/string/Timestamp-stderr.txt
@@ -1 +1 @@
-RESULT=2005-08-07 23:19:49 Sun Aug 05 day=219 wd=0 week=32 %%I=11
+RESULT=2005-08-07 23:19:49 Sun Aug 05 day=219 wd=0 week=32 %I=11 epoch=1123456789
diff --git a/Tests/RunCMake/string/Timestamp.cmake b/Tests/RunCMake/string/Timestamp.cmake
index 1232300..d242039 100644
--- a/Tests/RunCMake/string/Timestamp.cmake
+++ b/Tests/RunCMake/string/Timestamp.cmake
@@ -1,3 +1,3 @@
set(ENV{SOURCE_DATE_EPOCH} "1123456789")
-string(TIMESTAMP RESULT "%Y-%m-%d %H:%M:%S %a %b %y day=%j wd=%w week=%U %%I=%I" UTC)
+string(TIMESTAMP RESULT "%Y-%m-%d %H:%M:%S %a %b %y day=%j wd=%w week=%U %%I=%I epoch=%s" UTC)
message("RESULT=${RESULT}")