Re: [CMake] Enable warnings

2008-02-25 Thread dizzy
On Sunday 24 February 2008 23:22:58 blinkeye wrote: On 2/24/08, David Sveningsson [EMAIL PROTECTED] wrote: Hi, I'm quite new with cmake and I can't figure out how to enable warnings for the generated makefiles/projects. For instance, I would like to use the -Wall flag with gcc. like

Re: [CMake] Enable warnings

2008-02-25 Thread BlinkEye
On Mon, February 25, 2008 11:11, dizzy wrote: On Sunday 24 February 2008 23:22:58 blinkeye wrote: On 2/24/08, David Sveningsson [EMAIL PROTECTED] wrote: Hi, I'm quite new with cmake and I can't figure out how to enable warnings for the generated makefiles/projects. For instance, I would

Re: [CMake] Enable warnings

2008-02-25 Thread Alexander Neundorf
On Monday 25 February 2008, dizzy wrote: On Sunday 24 February 2008 23:22:58 blinkeye wrote: On 2/24/08, David Sveningsson [EMAIL PROTECTED] wrote: Hi, I'm quite new with cmake and I can't figure out how to enable warnings for the generated makefiles/projects. For instance, I would

Re: [CMake] Enable warnings

2008-02-25 Thread Alan W. Irwin
On 2008-02-25 11:53+0100 BlinkEye wrote: On Mon, February 25, 2008 11:11, dizzy wrote: That looks fairly unportable (how do you make sure your compiler supports those flags? if it doesn't it won't compile at all which is not probably what you want since you are using cmake I supose you want it

Re: [CMake] Enable warnings

2008-02-24 Thread E. Wing
In ccmake or CMakeSetup, add the flag to either CMAKE_C_FLAGS or CMAKE_CXX_FLAGS. -Eric On 2/24/08, David Sveningsson [EMAIL PROTECTED] wrote: Hi, I'm quite new with cmake and I can't figure out how to enable warnings for the generated makefiles/projects. For instance, I would like to use

[CMake] Enable warnings

2008-02-24 Thread David Sveningsson
Hi, I'm quite new with cmake and I can't figure out how to enable warnings for the generated makefiles/projects. For instance, I would like to use the -Wall flag with gcc. -- //*David Sveningsson [eXt]* Freelance coder | Game Development Student http://sidvind.com Thou shalt make thy

Re: [CMake] Enable warnings

2008-02-24 Thread blinkeye
On 2/24/08, David Sveningsson [EMAIL PROTECTED] wrote: Hi, I'm quite new with cmake and I can't figure out how to enable warnings for the generated makefiles/projects. For instance, I would like to use the -Wall flag with gcc. like that for example: set( CMAKE_C_FLAGS -fstack-protector