Re: [CMake] Feature request: date command

2011-02-02 Thread Droscy
Hi Daniel, you can use something like the macro in the attached file, adapting it to fit your needs. It is not the same as a "cmake -E date" command, but it is useful. Bye Droscy # - Get the current date from the system # This file defines the macro TODAY that can be used to # retrive the curre

[CMake] Feature request: date command

2011-02-02 Thread Daniel Pfeifer
Hi, There are a few places where I want to put the current date in generated files. There is a 'date' command in Windows, in OSX and in Linux. However, all three commands take different parameters to format the output, so they cannot be uses in a portable manner. What I would like to use is