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.
This commit is contained in:
Michael Scott
2015-11-29 13:34:07 +00:00
committed by Brad King
parent e8974b62d7
commit aac633d5e5
8 changed files with 54 additions and 12 deletions
+2 -2
View File
@@ -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.