[CMake] Building a Version Header

Clark Gaebel cg.wowus.cg at gmail.com
Wed Jul 7 23:53:58 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 07/07/10 23:49, John Drescher wrote:
> On Wed, Jul 7, 2010 at 11:43 PM, Clark Gaebel <cg.wowus.cg at gmail.com> wrote:
>   
>> Okay, I've almost got it. How do I make configure_file generate
>> something like...
>>
>> source:
>> #cmakedefine VERSION
>>
>>     
> Some thing like
>
> Version.h.in
> #define VERSION "@PROJECT_VERSION@"
>
>
> Try to look at my first example for usage.
>
> John
>   

-- 
Regards,
-Clark



More information about the CMake mailing list