mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Revert topic 'cmake-W-options' (#15747)
The changes in commit c96fe0b4 (cmake: Add -W options to control
deprecation warnings and errors, 2015-07-28) fail to account for
-Wdev warnings produced by places in CMake other than message().
This causes a regression in which -Wno-dev fails to suppress such
warnings. Revert the feature until it can be revised accordingly.
This commit is contained in:
@@ -77,49 +77,10 @@
|
||||
Suppress developer warnings.
|
||||
|
||||
Suppress warnings that are meant for the author of the
|
||||
CMakeLists.txt files. By default this will also turn off
|
||||
deprecation warnings.
|
||||
CMakeLists.txt files.
|
||||
|
||||
``-Wdev``
|
||||
Enable developer warnings.
|
||||
|
||||
Enable warnings that are meant for the author of the CMakeLists.txt
|
||||
files. By default this will also turn on deprecation warnings.
|
||||
|
||||
``-Werror=dev``
|
||||
Make developer warnings errors.
|
||||
|
||||
Make warnings that are meant for the author of the CMakeLists.txt
|
||||
files errors. By default this will also turn on treatment of
|
||||
deprecation warnings as errors.
|
||||
|
||||
``-Wno-error=dev``
|
||||
Make developer warnings not errors.
|
||||
|
||||
Make warnings that are meant for the author of the CMakeLists.txt
|
||||
files not errors. By default this will also turn off treatment of
|
||||
deprecation warnings as errors.
|
||||
|
||||
``-Wdeprecated``
|
||||
Enable deprecated macro and function warnings.
|
||||
|
||||
Enable warnings for usage of deprecated macros and functions, that
|
||||
are meant for the author of the CMakeLists.txt files.
|
||||
|
||||
``-Wno-deprecated``
|
||||
Suppress deprecated macro and function warnings.
|
||||
|
||||
Suppress warnings for usage of deprecated macros and functions, that
|
||||
are meant for the author of the CMakeLists.txt files.
|
||||
|
||||
``-Werror=deprecated``
|
||||
Make deprecated macro and function warnings errors.
|
||||
|
||||
Make warnings for usage of deprecated macros and functions, that
|
||||
are meant for the author of the CMakeLists.txt files, errors.
|
||||
|
||||
``-Wno-error=deprecated``
|
||||
Make deprecated macro and function warnings not errors.
|
||||
|
||||
Make warnings for usage of deprecated macros and functions, that
|
||||
are meant for the author of the CMakeLists.txt files, not errors.
|
||||
files.
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
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.
|
||||
@@ -6,7 +6,3 @@ 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)`.
|
||||
|
||||
@@ -5,7 +5,3 @@ Whether to issue deprecation warnings for macros and functions.
|
||||
|
||||
If TRUE, this can be used by macros and functions to issue deprecation
|
||||
warnings. This variable is FALSE by default.
|
||||
|
||||
These warnings can be enabled with the ``-Wdeprecated`` option, or
|
||||
disabled with the ``-Wno-deprecated`` option, when running
|
||||
:manual:`cmake(1)`.
|
||||
|
||||
Reference in New Issue
Block a user