[CMake] How to get the current date

ycollette.nospam at free.fr ycollette.nospam at free.fr
Fri Nov 26 08:09:48 EST 2010


Thanks for the link:

http://www.cmake.org/pipermail/cmake/2009-February/027014.html

seems to answer my question.

YC

----- Mail Original -----
De: "Eric Noulard" <eric.noulard at gmail.com>
À: "ycollette nospam" <ycollette.nospam at free.fr>
Cc: "cmake" <cmake at cmake.org>
Envoyé: Vendredi 26 Novembre 2010 13h35:30 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne
Objet: Re: [CMake] How to get the current date

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