[cmake-developers] Add command line options for deprecation message control

Brad King brad.king at kitware.com
Fri Sep 25 08:45:07 EDT 2015


On 09/24/2015 05:45 PM, Michael Scott wrote:
> I've created a fix for the issue of -Wno-dev and -Wno-deprecated options 
> not being honoured, and extended the tests to cover this additional 
> scenario.

Thanks for working on it.

> However I'm having an issue with determining if variables are set in 
> cmake.cxx. The initial fix checked for the variables using the 
> "GetCacheEntryValue" method in cmState, but I found that this didn't 
> work when the variable (say CMAKE_WARN_DEPRECATED) was set in a .cmake 
> file, as is the case for the "RunCMake/message/warnmessage.cmake".

The cmake::Configure check for that runs before the scripts run so
it is not possible to get script-provided values there.  Do you have
a check in a new context that occurs later?  If so please provide the
patch in progress and point out the problem.

Thanks,
-Brad



More information about the cmake-developers mailing list