From 7ad89f8fb1eeff46e7a636756145b1fb8d6cc9fb Mon Sep 17 00:00:00 2001 From: Craig Scott Date: Thu, 11 Aug 2022 15:39:37 +1000 Subject: Help: List compiler IDs supported by COMPILE_WARNING_AS_ERROR --- Help/prop_tgt/COMPILE_WARNING_AS_ERROR.rst | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Help/prop_tgt/COMPILE_WARNING_AS_ERROR.rst b/Help/prop_tgt/COMPILE_WARNING_AS_ERROR.rst index 86a0f7f..32fdcd4 100644 --- a/Help/prop_tgt/COMPILE_WARNING_AS_ERROR.rst +++ b/Help/prop_tgt/COMPILE_WARNING_AS_ERROR.rst @@ -6,5 +6,28 @@ 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. +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 _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. -- cgit v0.12 From 680fe820c60f84cc0b11dd3b0cbaefc111040f03 Mon Sep 17 00:00:00 2001 From: Craig Scott Date: Thu, 11 Aug 2022 15:08:46 +1000 Subject: Help: A missing cross-reference to --compile-no-warning-as-error --- Help/prop_tgt/COMPILE_WARNING_AS_ERROR.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Help/prop_tgt/COMPILE_WARNING_AS_ERROR.rst b/Help/prop_tgt/COMPILE_WARNING_AS_ERROR.rst index 32fdcd4..19323cb 100644 --- a/Help/prop_tgt/COMPILE_WARNING_AS_ERROR.rst +++ b/Help/prop_tgt/COMPILE_WARNING_AS_ERROR.rst @@ -5,6 +5,8 @@ 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 ``--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 -- cgit v0.12 From bba3ec96b026fd944cb3857ad9944a55839836e0 Mon Sep 17 00:00:00 2001 From: Craig Scott Date: Thu, 11 Aug 2022 15:08:46 +1000 Subject: Help: A missing cross-reference to --compile-no-warning-as-error --- Help/prop_tgt/COMPILE_WARNING_AS_ERROR.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Help/prop_tgt/COMPILE_WARNING_AS_ERROR.rst b/Help/prop_tgt/COMPILE_WARNING_AS_ERROR.rst index 32fdcd4..684b9dd 100644 --- a/Help/prop_tgt/COMPILE_WARNING_AS_ERROR.rst +++ b/Help/prop_tgt/COMPILE_WARNING_AS_ERROR.rst @@ -5,6 +5,8 @@ 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 -- cgit v0.12