Re: [CMake] Cmake macro and date

2009-02-12 Thread Eric Noulard
2009/2/12 Benoit : > Hy, > > I want to retrieve today date in order to install various release each day. > I've created a script: GetDataTime.cmake > > In which I have defined this macro: > > INCLUDE(FindPerl) > MACRO (TODAY RESULT) > IF (PERL_FOUND) > EXECUTE_PROCESS(COMMAND "${PERL_EXECUTABLE

[CMake] Cmake macro and date

2009-02-12 Thread Benoit
Hy, I want to retrieve today date in order to install various release each day. I've created a script: GetDataTime.cmake In which I have defined this macro: INCLUDE(FindPerl) MACRO (TODAY RESULT) IF (PERL_FOUND) EXECUTE_PROCESS(COMMAND "${PERL_EXECUTABLE}" "-E '($sec,$min,$hour,$mday,$mon,$y