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

Eric Noulard eric.noulard at gmail.com
Thu Sep 27 13:41:20 EDT 2012


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?



-- 
Erk
Le gouvernement représentatif n'est pas la démocratie --
http://www.le-message.org



More information about the cmake-developers mailing list