diff options
author | Michael Scott <michael.scott250@gmail.com> | 2015-07-27 23:07:03 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-07-29 13:20:10 (GMT) |
commit | c96fe0b40d562b65831376f927b6fd96cf999a52 (patch) | |
tree | 7a72ca8450ded588ff6a0c7247de2366d178bfe5 /Help/release/dev/cmake-W-options.rst | |
parent | 98d6e9ec2dd0a935b1ebfed50b6e9ecab719557d (diff) | |
download | CMake-c96fe0b40d562b65831376f927b6fd96cf999a52.zip CMake-c96fe0b40d562b65831376f927b6fd96cf999a52.tar.gz CMake-c96fe0b40d562b65831376f927b6fd96cf999a52.tar.bz2 |
cmake: Add -W options to control deprecation warnings and errors
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.
Diffstat (limited to 'Help/release/dev/cmake-W-options.rst')
-rw-r--r-- | Help/release/dev/cmake-W-options.rst | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Help/release/dev/cmake-W-options.rst b/Help/release/dev/cmake-W-options.rst new file mode 100644 index 0000000..c0b51d0 --- /dev/null +++ b/Help/release/dev/cmake-W-options.rst @@ -0,0 +1,13 @@ +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. |