summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2022-08-16 10:57:18 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-08-16 10:57:32 (GMT)
commit69d584378f81280632783e969d9f96f73859e54c (patch)
treec355b052c80d2010d441336802d2629c6884146a
parentca2f19ca9cf13c2d9ddd5db95b181628e35977be (diff)
parent2c6e379c89ffe4206b3c042b1469dfdd7e8ed7e4 (diff)
downloadCMake-69d584378f81280632783e969d9f96f73859e54c.zip
CMake-69d584378f81280632783e969d9f96f73859e54c.tar.gz
CMake-69d584378f81280632783e969d9f96f73859e54c.tar.bz2
Merge topic 'doc-warning-as-error'
2c6e379c89 Merge branch 'backport-3.24-doc-warning-as-error' into doc-warning-as-error bba3ec96b0 Help: A missing cross-reference to --compile-no-warning-as-error 2c1a746343 Merge branch 'backport-3.24-doc-warning-as-error' into doc-warning-as-error 680fe820c6 Help: A missing cross-reference to --compile-no-warning-as-error 7ad89f8fb1 Help: List compiler IDs supported by COMPILE_WARNING_AS_ERROR Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7561
-rw-r--r--Help/prop_tgt/COMPILE_WARNING_AS_ERROR.rst25
1 files changed, 25 insertions, 0 deletions
diff --git a/Help/prop_tgt/COMPILE_WARNING_AS_ERROR.rst b/Help/prop_tgt/COMPILE_WARNING_AS_ERROR.rst
index 86a0f7f..684b9dd 100644
--- a/Help/prop_tgt/COMPILE_WARNING_AS_ERROR.rst
+++ b/Help/prop_tgt/COMPILE_WARNING_AS_ERROR.rst
@@ -5,6 +5,31 @@ COMPILE_WARNING_AS_ERROR
Specify whether to treat warnings on compile as errors.
If enabled, adds a flag to treat warnings on compile as errors.
+If the :option:`cmake --compile-no-warning-as-error` option is given
+on the :manual:`cmake(1)` command line, this property is ignored.
+
+This property is not implemented for all compilers. It is silently ignored
+if there is no implementation for the compiler being used. The currently
+implemented :variable:`compiler IDs <CMAKE_<LANG>_COMPILER_ID>` are:
+
+* ``GNU``
+* ``Clang``
+* ``AppleClang``
+* ``Fujitsu``
+* ``FujitsuClang``
+* ``IBMClang``
+* ``Intel``
+* ``IntelLLVM``
+* ``LCC``
+* ``MSVC``
+* ``NVHPC``
+* ``NVIDIA`` (CUDA)
+* ``QCC``
+* ``SunPro``
+* ``TI``
+* ``VisualAge``
+* ``XL``
+* ``XLClang``
This property is initialized by the value of the variable
:variable:`CMAKE_COMPILE_WARNING_AS_ERROR` if it is set when a target is created.