[CMake] Building a Version Header

John Drescher drescherjm at gmail.com
Thu Jul 8 00:00:07 EDT 2010


On Wed, Jul 7, 2010 at 11:58 PM, John Drescher <drescherjm at gmail.com> wrote:
>> 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?
>>
>

Wait a minute did you use

OUTPUT_STRIP_TRAILING_WHITESPACE

in your

EXECUTE_PROCESS

?

John


More information about the CMake mailing list