Re: [CMake] How best to capture the current Date/Time

2009-03-20 Thread Philip Lowman
Another argument for a command is that the user may want... Military time (24 hr) UTC instead of local timezone Months/Dates/Hours with leading 0's By making it a command it is extensible and customizable. If it's a set of variables you've already limited some of your options. .. Original

Re: [CMake] How best to capture the current Date/Time

2009-03-20 Thread Bill Hoffman
Michael Jackson wrote: I don't think you could do this as a set of variables. It would be better as some sort of command. file(GETDATE result) or something. -Bill Well, I could but I am really interested in _why_ I would _not_ want to? Besides the obvious that the variables would basicall

Re: [CMake] How best to capture the current Date/Time

2009-03-20 Thread Michael Jackson
On Mar 20, 2009, at 10:12 AM, Bill Hoffman wrote: Michael Jackson wrote: On Mar 20, 2009, at 5:30 AM, Eric Noulard wrote: 2009/3/20 Philip Lowman : On Thu, Mar 19, 2009 at 11:18 PM, Michael Jackson wrote: I am trying to find a nice portable solution for generating version strings based

Re: [CMake] How best to capture the current Date/Time

2009-03-20 Thread Bill Hoffman
Michael Jackson wrote: On Mar 20, 2009, at 5:30 AM, Eric Noulard wrote: 2009/3/20 Philip Lowman : On Thu, Mar 19, 2009 at 11:18 PM, Michael Jackson wrote: 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+

Re: [CMake] How best to capture the current Date/Time

2009-03-20 Thread Mike Arthur
On Friday 20 March 2009 13:26:36 Michael Jackson wrote: > After all of this I'll probably put in a feature request for this > functionality to be a part of CMake. Actually, if we could just get > the following variables set by CMake it would be great: > > CMAKE_CURRENT_YEAR > CMAKE_CURRENT_MONTH >

Re: [CMake] How best to capture the current Date/Time

2009-03-20 Thread Michael Jackson
On Mar 20, 2009, at 5:30 AM, Eric Noulard wrote: 2009/3/20 Philip Lowman : On Thu, Mar 19, 2009 at 11:18 PM, Michael Jackson wrote: 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 genera

Re: [CMake] How best to capture the current Date/Time

2009-03-20 Thread Eric Noulard
2009/3/20 Philip Lowman : > On Thu, Mar 19, 2009 at 11:18 PM, Michael Jackson > wrote: >> >> 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 t

Re: [CMake] How best to capture the current Date/Time

2009-03-19 Thread Philip Lowman
On Thu, Mar 19, 2009 at 11:18 PM, Michael Jackson < mike.jack...@bluequartz.net> wrote: > 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

[CMake] How best to capture the current Date/Time

2009-03-19 Thread Michael Jackson
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 cm