[CMake] How to obtain "date of the day"
Michael Wild
themiwi at gmail.com
Thu Aug 5 10:07:34 EDT 2010
On 5. Aug, 2010, at 15:46 , Jean-Christophe Fillion-Robin wrote:
> hi Folks,
>
> Earlier in the day, somebody asked me how he could obtain "today date" using
> cmake.
> I replied there was no direct way to obtain the date and I told him to use a
> macro I wrote.
> See
> http://viewvc.slicer.org/viewcvs.cgi/trunk/CMake/Slicer3TodayMacro.cmake?rev=11898&view=log
>
> Is there a better a way to retrieve "today date" ?
>
> Thks
> Jc
Not that I know of, it's come up occasionally on this list... The problem with this kind of macro is (IMHO) that it gives you the configure-date, not the build-date. For the latter you would need to call this macro as a CMake-script at build time.
Michael
More information about the CMake
mailing list