diff options
author | Bernhard M. Wiedemann <bwiedemann@suse.de> | 2017-01-27 13:12:58 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-01-27 14:25:37 (GMT) |
commit | 6c54f7b3655737406c53fa1e4fc1d8f4cc22f9f9 (patch) | |
tree | f49afc910a51bc05b10a2b978b691ef5d5f73e85 /Tests | |
parent | 325c6153088c673569971958f107f6cb97b67c50 (diff) | |
download | CMake-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')
-rw-r--r-- | Tests/RunCMake/string/Timestamp-stderr.txt | 2 | ||||
-rw-r--r-- | Tests/RunCMake/string/Timestamp.cmake | 2 |
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}") |