[CMake] How to get the current date

Eric Noulard eric.noulard at gmail.com
Fri Nov 26 07:35:30 EST 2010


2010/11/26  <ycollette.nospam at free.fr>:
> Hello,
>
> Is it possible in a CMakeLists.txt file to get the current date (under linux and windows) ?
> I would like to store this date in a cmake variable so as to write it in a .h file.

CMake has no builtin for that but if you search the ML archive
http://www.cmake.org/Wiki/CMake_FAQ#Where_can_I_find_searchable_CMake_Mailing_Archives.3F
you'll find several discussions (and solution proposal) on this subject.
-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org


More information about the CMake mailing list