[CMake] New warnings in CMake 2.8.4-rc2

David Cole david.cole at kitware.com
Thu Feb 17 11:55:50 EST 2011


On Thu, Feb 17, 2011 at 11:47 AM, Alexander Neundorf
<a.neundorf-work at gmx.net> wrote:
> On Wednesday 16 February 2011, you wrote:
>> > So what is the recommended way to suppress the warnings whatever the
>> > CMake 2.8.x release ?
>>
>> 2.8.4 has been released, the warnings seem to be enabled without a new
>> policy setting ;-(
>
> Please post to the mailing list, I'm not really involved in these wanings.
>
> Alex
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>

The only warning that is enabled by default is to warn you about
misspelled -D options that you pass on the command line. (We think
they *may* be misspelled because they are not referenced in the
configure/generate steps... So it's just a warning.)

You can suppress this by also passing "--no-warn-unused-cli" on the
CMake command line. Or by avoiding passing in the unused variables in
the first place. Or by sticking with CMake 2.8.3 that does not produce
this warning.

Those are your 3 options for avoiding this warning.

HTH,
David


More information about the CMake mailing list