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.
14 lines
509 B
ReStructuredText
14 lines
509 B
ReStructuredText
cmake-W-options
|
|
---------------
|
|
|
|
* The :variable:`CMAKE_ERROR_DEPRECATED` variable can now be set using the
|
|
``-Werror=deprecated`` and ``-Wno-error=deprecated`` :manual:`cmake(1)`
|
|
options.
|
|
|
|
* The :variable:`CMAKE_WARN_DEPRECATED` variable can now be set using the
|
|
``-Wdeprecated`` and ``-Wno-deprecated`` :manual:`cmake(1)` options.
|
|
|
|
* :manual:`cmake(1)` gained options ``-Werror=dev`` and ``-Wno-error=dev``
|
|
to control whether developer warnings intended for project authors
|
|
are treated as errors.
|