[CMake] Start-of-Build timestamp?

Clifford Yapp cliffyapp at gmail.com
Fri Aug 13 14:58:55 EDT 2010


Does anybody have an example where they use CMake (and probably a
little C code) to generate a file with a timestamp for the beginning
and/or end of the build in a cross-platform manner?  I know CMake
can't do this itself if you assume only the Makefiles/Visual Studio
build logic at build time, but that essentially means some sort of
custom target is needed to compile and run code that will do what is
needed, plus (ideally) some way to ensure this target is the first
thing built by the makefiles.  Does CMake have some sort of "Do this
list of targets before any other targets" list that could be used?

Cheers,
CY


More information about the CMake mailing list