diff options
author | Alex Turbov <i.zaufi@gmail.com> | 2022-08-12 23:15:45 (GMT) |
---|---|---|
committer | Alex Turbov <i.zaufi@gmail.com> | 2022-08-14 05:58:41 (GMT) |
commit | e2198fd9dcc281d67e9cfbdf9501d46daeb814d3 (patch) | |
tree | 237ce3d87d3e30efd9c12057da266aeb7a5dfd3d /Help/manual/OPTIONS_BUILD.txt | |
parent | a6070b480fe5b0201d845614c762bf2d594948c3 (diff) | |
download | CMake-e2198fd9dcc281d67e9cfbdf9501d46daeb814d3.zip CMake-e2198fd9dcc281d67e9cfbdf9501d46daeb814d3.tar.gz CMake-e2198fd9dcc281d67e9cfbdf9501d46daeb814d3.tar.bz2 |
Help: Format `-Werror`/`-Wno-error` in the way it can be referenced
Replace mentions of these options in the presets manual page.
Diffstat (limited to 'Help/manual/OPTIONS_BUILD.txt')
-rw-r--r-- | Help/manual/OPTIONS_BUILD.txt | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/Help/manual/OPTIONS_BUILD.txt b/Help/manual/OPTIONS_BUILD.txt index 3868276..4220dc0 100644 --- a/Help/manual/OPTIONS_BUILD.txt +++ b/Help/manual/OPTIONS_BUILD.txt @@ -109,20 +109,6 @@ Enable warnings that are meant for the author of the ``CMakeLists.txt`` files. By default this will also turn on deprecation warnings. -.. option:: -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 deprecated warnings as errors. - -.. option:: -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 deprecated warnings as errors. - .. option:: -Wdeprecated Enable deprecated functionality warnings. @@ -137,16 +123,30 @@ Suppress warnings for usage of deprecated functionality, that are meant for the author of the ``CMakeLists.txt`` files. -.. option:: -Werror=deprecated +.. option:: -Werror=<what> + + Treat CMake warnings as errors. ``<what>`` must be one of the following: + + ``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 deprecated warnings as errors. + + ``deprecated`` + Make deprecated macro and function warnings errors. - 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. - Make warnings for usage of deprecated macros and functions, that are meant - for the author of the ``CMakeLists.txt`` files, errors. +.. option:: -Wno-error=<what> -.. option:: -Wno-error=deprecated + Do not treat CMake warnings as errors. ``<what>`` must be one of the following: - Make deprecated macro and function warnings not errors. + ``dev`` + Make warnings that are meant for the author of the ``CMakeLists.txt`` files not + errors. By default this will also turn off deprecated warnings as errors. - Make warnings for usage of deprecated macros and functions, that are meant - for the author of the ``CMakeLists.txt`` files, not errors. + ``deprecated`` + Make warnings for usage of deprecated macros and functions, that are meant + for the author of the ``CMakeLists.txt`` files, not errors. |