[CMake] How best to capture the current Date/Time

Mike Arthur mike at mikearthur.co.uk
Fri Mar 20 10:08:29 EDT 2009


On Friday 20 March 2009 13:26:36 Michael Jackson wrote:
> After all of this I'll probably put in a feature request for this
> functionality to be a part of CMake. Actually, if we could just get
> the following variables set by CMake it would be great:
>
> CMAKE_CURRENT_YEAR
> CMAKE_CURRENT_MONTH
> CMAKE_CURRENT_DAY
> CMAKE_CURRENT_HOUR
> CMAKE_CURRENT_MINUTE
> CMAKE_CURRENT_SECOND
>
> that would be _really_ helpful.
I agree, this is something I've always been a bit surprised that it isn't in 
CMake.

-- 
Cheers,
Mike Arthur
http://mikearthur.co.uk/


More information about the CMake mailing list