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

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to