c96fe0b40d
Refactor the -Wdev and -Wno-dev to use a generic -W parser that follows the GCC pattern. Include support for setting CMAKE_ERROR_DEPRECATED and CMAKE_WARN_DEPRECATED via the deprecated warning. Add -Werror=dev and -Wno-error=dev options so that dev warning options are in line with deprecated warning options. Use a new CMAKE_SUPPRESS_DEVELOPER_ERRORS internal cache entry to store the above new dev options persistently. Add tests for new options and updated cmake documentation and release notes to list new options.
13 lines
421 B
ReStructuredText
13 lines
421 B
ReStructuredText
CMAKE_ERROR_DEPRECATED
|
|
----------------------
|
|
|
|
Whether to issue deprecation errors for macros and functions.
|
|
|
|
If TRUE, this can be used by macros and functions to issue fatal
|
|
errors when deprecated macros or functions are used. This variable is
|
|
FALSE by default.
|
|
|
|
These errors can be enabled with the ``-Werror=deprecated`` option, or
|
|
disabled with the ``-Wno-error=deprecated`` option, when running
|
|
:manual:`cmake(1)`.
|