[CMake] Building a Version Header

John Drescher drescherjm at gmail.com
Wed Jul 7 23:58:47 EDT 2010

> Nice. that works. I'm so sorry to be such a bother, but here's my output
> now...
> #define PROJECT_VERSION "v0.1-345-ga77ede8-dirty
> "
> Needless to say, that's bad :(
> How would I go about removing that trailing newline?


on the PROJECT_VERSION in your CMakeLists.txt

there are examples of that command in the Macro I posted a few emails
ago. If you get stuck I will try to figure that out.


More information about the CMake mailing list