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

Brad King brad.king at kitware.com
Wed Jul 8 16:06:57 EDT 2015


On 07/08/2015 04:01 PM, Michael Scott wrote:
> Making dev influence deprecation variables is not a problem. To support 
> -Werror=dev we'll need a new variable I'm thinking though, something 
> like a boolean CMAKE_SUPPRESS_DEVELOPER_ERRORS?

Yes, thanks.

> What should be the expected behaviour when combining dev and deprecated 
> now, as they affect each other. If for example the user used the options 
> "-Wno-deprecated -Wdev" in a cmake invocation, the most logical to me 
> would be that this causes CMAKE_SUPPRESS_DEVELOPER_WARNINGS to be TRUE 
> and CMAKE_WARN_DEPRECATED to be FALSE, but implementing that might make 
> the code more complicated than I'd hoped.

Yes, I think you'll need some kind of tracking for what settings were
explicitly specified.

Thanks,
-Brad


P.S.  Your mailer is breaking the message threading.



More information about the cmake-developers mailing list