[CMake] New warnings in CMake 2.8.4-rc2

Brad King brad.king at kitware.com
Wed Feb 2 09:08:28 EST 2011


On 2/2/2011 6:10 AM, Micha Renner wrote:
> Am Mittwoch, den 02.02.2011, 12:00 +0100 schrieb Emmanuel Blot:
>> Hello,
>> 
>> How to disable the new warnings CMake 2.8.4-rc2 emits, such as the
>> following ones?
> 
> I support this question too.
> 
> There should be a way to switch off this feature of CMake, especially
> when variables are used uninitialized.

cmake --help:

  --warn-uninitialized        = Warn about uninitialized values.
  --warn-unused-vars          = Warn about unused variables.
  --no-warn-unused-cli        = Don't warn about command line options.

-Brad


More information about the CMake mailing list