[CMake] Turning on warnings when compiling.

Sanchez, Juan juan.sanchez at amd.com
Tue Aug 28 10:33:20 EDT 2007


ADD_DEFINITIONS(-Wall)

should work for both the gnu c and c++ compiler and other compilers supporting gnu option emulation.

You can also do:
make VERBOSE=1

on a unix system to see the commands being executed.

Regards,

Juan


-----Original Message-----
From: cmake-bounces+juan.sanchez=amd.com at cmake.org on behalf of Michael Wagner
Sent: Tue 8/28/2007 8:07 AM
To: cmake at cmake.org
Subject: [CMake] Turning on warnings when compiling.
 
Hi,

Whenever I'm compiling, there are no warnings shown.
Is there a command or variable that can be used to turn on warnings?

When searching the wiki, the only information I found was this page:
http://www.cmake.org/Wiki/CMake_Platform_Dependent_Issues
which tells me the right flags for all the different compilers. That is
wonderfull, I just need to know how to turn that stuff on!

Maybe somebody out there knows how to turn on warnings. (Hopefully you
are not all fearless coders that laugh in the face of warnings... ;-)

cheers,

Michael
_______________________________________________
CMake mailing list
CMake at cmake.org
http://www.cmake.org/mailman/listinfo/cmake



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20070828/b8b8ce90/attachment.html


More information about the CMake mailing list