[CMake] How to set compiler flags?
David Aldrich
David.Aldrich at EU.NEC.COM
Fri Oct 1 06:55:32 EDT 2010
Well I can't argue with that, but I must admit that I have not read CMakeCache.txt ;-)
David
> -----Original Message-----
> From: Michael Wild [mailto:themiwi at gmail.com]
> Sent: 01 October 2010 11:53
> To: David Aldrich
> Cc: fatman at crackmonkey.us; cmake at cmake.org
> Subject: Re: [CMake] How to set compiler flags?
>
>
> On 1. Oct, 2010, at 12:45 , David Aldrich wrote:
>
> > Hi Michael
> >
> >> Wrong. CMAKE_CXX_FLAGS is always used, the configuration-specific
> >> values are appended to it.
> >
> > This is where I groan a little. I haven't read that in the online
> documentation.
> >
> > Best regards
> >
> > David
>
>
> Couldn't find it in the docs either (just had a superficial look), but in the
> CMakeCache.txt it says cleary:
>
> //Flags used by the compiler during all build types.
> CMAKE_CXX_FLAGS:STRING=
>
> //Flags used by the compiler during debug builds.
> CMAKE_CXX_FLAGS_DEBUG:STRING=-g
>
> ...
>
>
> Michael
>
> --
> There is always a well-known solution to every human problem -- neat,
> plausible, and wrong.
> H. L. Mencken
More information about the CMake
mailing list