[cmake-developers] patch for cmake that adds a new timestamp command

Rolf Eike Beer eike at sf-mail.de
Thu Sep 27 16:49:40 EDT 2012


Eric Noulard wrote:
> 2012/9/27 David Cole <david.cole at kitware.com>:
> > Hmmmm. Good idea.
> > 
> > Should we add a new command for this? Or should it be a sub-command of
> > "string(" like RANDOM is?
> > 
> > And... while we're at it, I've always thought we should add the
> > ability to get the creation/modified/access times from a file via the
> > CMake file command. If we allow getting the "current" time, we should
> > leverage some of the same transformation-to-string code in the file
> > command to get the various times associated with a file.
> > 
> > What do other devs here think:
> > New command or string sub-command for this functionality?
> 
> string sub-command for me, and agreed with Brad as well
> for the "namespace" thing.
> 
> agreed with file(...) extension as well.
> 
> that said isn't the "TIMESTAMP" misleading?
> shouldn't it be called "DATE" instead?

I would second that.

Eike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20120927/70c52bf5/attachment.sig>


More information about the cmake-developers mailing list