[CMake] New warnings in CMake 2.8.4-rc2

Bill Hoffman bill.hoffman at kitware.com
Wed Feb 2 09:12:23 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.
>

Currently, there is no way to turn this off.  Are the warnings valid? 
It means you are giving -D options on the command line, and those 
variables are never touched in the project.  Seems like you would not 
want to use them anymore.  The idea was to catch misspelled words.

-DMYVARR=1 , but you wanted MYVAR.

-Bill


More information about the CMake mailing list