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.jack...@bluequartz.net
BlueQuartz Software                    www.bluequartz.net
Principal Software Engineer                  Dayton, Ohio



_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to