summaryrefslogtreecommitdiffstats
path: root/Source
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 /Source
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 'Source')
-rw-r--r--Source/cmTimestamp.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmTimestamp.cxx b/Source/cmTimestamp.cxx
index 1e5ac5b..3d42e26 100644
--- a/Source/cmTimestamp.cxx
+++ b/Source/cmTimestamp.cxx
@@ -136,6 +136,7 @@ std::string cmTimestamp::AddTimestampComponent(char flag,
case 'w':
case 'y':
case 'Y':
+ case '%':
break;
case 's': // Seconds since UNIX epoch (midnight 1-jan-1970)
{