I would like to generate file that looks something like this:
// version.h
#define VERSION "v0.1-345-ga77ede8"
where the version string is the result of running "git describe --tags
--dirty". How can I auto-generate this file, include it in my project,
and have it regenerate as a pre-build event?
--
Regards,
-Clark
_______________________________________________
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