[CMake] Change warning level in CMake
themiwi at gmail.com
Thu Jul 29 02:39:08 EDT 2010
On 29. Jul, 2010, at 7:51 , Dieter Oberkofler wrote:
> A couple of questions regarding the warning levels when compiling:
> 1) Is there a "preferred" way to change the warning level in CMake?
> 2) What is the default warning level CMake is using when compiling and how
> can it be defined?
> Thank you,
AFAIK CMake doesn't pass any warning-level specific flags to the compiler, and there's no way to tell it to. That's something you have to do (e.g. by setting CMAKE_C_FLAGS and CMAKE_CXX_FLAGS).
More information about the CMake