diff options
author | Michael Scott <michael.scott250@gmail.com> | 2015-11-29 13:34:07 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-12-01 15:22:51 (GMT) |
commit | aac633d5e5765bb6b51e31364325ae7d916f021c (patch) | |
tree | e7cd3773e3936f6af088416645cb6cde7992fc2d /Help | |
parent | e8974b62d7883adf100d4c6ad90a0fbf682aaa91 (diff) | |
download | CMake-aac633d5e5765bb6b51e31364325ae7d916f021c.zip CMake-aac633d5e5765bb6b51e31364325ae7d916f021c.tar.gz CMake-aac633d5e5765bb6b51e31364325ae7d916f021c.tar.bz2 |
Explicitly enable deprecated warnings by default.
Explicitly enable deprecated warnings by default, via the
cmake::GetSuppressDeprecatedWarnings method, which signals
suppression is turned off unless the CMake variables are set
as required.
Add tests and update the documentation for the new
functionality.
Diffstat (limited to 'Help')
-rw-r--r-- | Help/release/dev/cmake-W-options.rst | 4 | ||||
-rw-r--r-- | Help/variable/CMAKE_WARN_DEPRECATED.rst | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/Help/release/dev/cmake-W-options.rst b/Help/release/dev/cmake-W-options.rst index 4784718..57d375f 100644 --- a/Help/release/dev/cmake-W-options.rst +++ b/Help/release/dev/cmake-W-options.rst @@ -6,3 +6,7 @@ cmake-W-options * The ``-Wdev`` and ``-Wno-dev`` :manual:`cmake(1)` options now also enable and suppress the deprecated warnings output by default. + +* Warnings about deprecated functionality are now enabled by default. + They may be suppressed with ``-Wno-deprecated`` or by setting the + :variable:`CMAKE_WARN_DEPRECATED` variable to false. diff --git a/Help/variable/CMAKE_WARN_DEPRECATED.rst b/Help/variable/CMAKE_WARN_DEPRECATED.rst index 5f87c34..4a224fa 100644 --- a/Help/variable/CMAKE_WARN_DEPRECATED.rst +++ b/Help/variable/CMAKE_WARN_DEPRECATED.rst @@ -3,8 +3,8 @@ CMAKE_WARN_DEPRECATED Whether to issue warnings for deprecated functionality. -If ``TRUE``, use of deprecated functionality will issue warnings. -If this variable is not set, CMake behaves as if it were set to ``FALSE``. +If not ``FALSE``, use of deprecated functionality will issue warnings. +If this variable is not set, CMake behaves as if it were set to ``TRUE``. When running :manual:`cmake(1)`, this option can be enabled with the ``-Wdeprecated`` option, or disabled with the ``-Wno-deprecated`` option. |