summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/string/Timestamp.cmake
diff options
context:
space:
mode:
authorBernhard M. Wiedemann <bwiedemann@suse.de>2017-01-27 13:12:58 (GMT)
committerBrad King <brad.king@kitware.com>2017-01-27 14:25:37 (GMT)
commit6c54f7b3655737406c53fa1e4fc1d8f4cc22f9f9 (patch)
treef49afc910a51bc05b10a2b978b691ef5d5f73e85 /Tests/RunCMake/string/Timestamp.cmake
parent325c6153088c673569971958f107f6cb97b67c50 (diff)
downloadCMake-6c54f7b3655737406c53fa1e4fc1d8f4cc22f9f9.zip
CMake-6c54f7b3655737406c53fa1e4fc1d8f4cc22f9f9.tar.gz
CMake-6c54f7b3655737406c53fa1e4fc1d8f4cc22f9f9.tar.bz2
string: Teach TIMESTAMP to treat %% as %
This encoding is documented by `strptime`.
Diffstat (limited to 'Tests/RunCMake/string/Timestamp.cmake')
-rw-r--r--Tests/RunCMake/string/Timestamp.cmake2
1 files changed, 1 insertions, 1 deletions
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}")