[cmake-developers] cmake --deprecated-warnings and cmake --deprecated-errors

Brad King brad.king at kitware.com
Tue Jul 30 08:45:57 EDT 2013


On 07/30/2013 06:30 AM, Stephen Kelly wrote:
> It's now possible to invoke cmake with -DCMAKE_WARN_DEPRECATED=1 and also 
> with -DCMAKE_ERROR_DEPRECATED=1 to get deprecation warnings or errors.
> 
> I wonder if we should add --deprecated-warnings and --deprecated-errors and 
> document them in cmake --help, as --warn-uninitialized etc? I think it's 
> something we can do after 2.8.12, but I want to make sure it doesn't change 
> anything in how the deprecation stuff works or is used currently.

The first warning option ever added was -Wdev and the intention at the
time was to use -W... for all warning options.  That was forgotten by
the time --warn-uninitialized was created.  Perhaps that can be cleaned
up now:

 -Wdeprecated
 -Wdeprecated=error
 -Wuninitialized
 ...

-Brad



More information about the cmake-developers mailing list