[CMake] How best to capture the current Date/Time
Michael Jackson
mike.jackson at bluequartz.net
Thu Mar 19 23:18:33 EDT 2009
I am trying to find a nice portable solution for generating version
strings based on the date (seems reasonable). I even have my own c++
code that can generate the proper string for me. The problem that I
can not seem to get my head around is that I need to compile and run
the program at cmake time which probably isn't really going to happen,
at least easily.
So. what is everyone else doing for this?
My main goal is to automate the generation of cmake code like the
following:
set ( ${${Project_Name}_VERSION} "2009.03.10")
so that I can later use it for OS X bundle building.
On Unix systems I can easily spawn a "date" command to get what I need
but what to do on windows?
Thanks for any suggestions.
_________________________________________________________
Mike Jackson mike.jackson at bluequartz.net
BlueQuartz Software www.bluequartz.net
Principal Software Engineer Dayton, Ohio
More information about the CMake
mailing list