[CMake] Enable warnings
blinkeye
gentoo at blinkeye.ch
Sun Feb 24 16:22:58 EST 2008
>> On 2/24/08, David Sveningsson <ext at sidvind.com> 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 -fstack-protector-all" )
set( CMAKE_C_FLAGS_DEBUG "-O2 -Wall -ggdb" )
set( CMAKE_C_FLAGS_RELEASE "-Os -Wall" )
set( CMAKE_CXX_FLAGS "-fstack-protector -fstack-protector-all" )
set( CMAKE_CXX_FLAGS_DEBUG "-O2 -Wall -ggdb" )
set( CMAKE_CXX_FLAGS_RELEASE "-Os -Wall" )
More information about the CMake
mailing list