summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-05-19 13:43:46 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-05-19 13:43:53 (GMT)
commit758756d1ba5a1fcb6b6caf7bb8ad93c406e2b062 (patch)
tree03fb2166801c5b7e578ec92100706b5e18ec976c /Help
parentf808b19020b3225b314a74fa3be65ea74b3c024f (diff)
parent65f7053d6c5a0d256691e156a22cc0e9f31a4d5a (diff)
downloadCMake-758756d1ba5a1fcb6b6caf7bb8ad93c406e2b062.zip
CMake-758756d1ba5a1fcb6b6caf7bb8ad93c406e2b062.tar.gz
CMake-758756d1ba5a1fcb6b6caf7bb8ad93c406e2b062.tar.bz2
Merge topic 'ignore-werror-command-arg'
65f7053d6c COMPILE_WARNING_AS_ERROR: Add command-line option Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7268
Diffstat (limited to 'Help')
-rw-r--r--Help/manual/cmake.1.rst5
-rw-r--r--Help/release/dev/werror-property.rst5
2 files changed, 10 insertions, 0 deletions
diff --git a/Help/manual/cmake.1.rst b/Help/manual/cmake.1.rst
index e0cb708..38105dd 100644
--- a/Help/manual/cmake.1.rst
+++ b/Help/manual/cmake.1.rst
@@ -426,6 +426,11 @@ Options
in :variable:`CMAKE_SOURCE_DIR` and :variable:`CMAKE_BINARY_DIR`.
This flag tells CMake to warn about other files as well.
+``--compile-no-warning-as-error``
+ Ignore target property :prop_tgt:`COMPILE_WARNING_AS_ERROR` and variable
+ :variable:`CMAKE_COMPILE_WARNING_AS_ERROR`, preventing warnings from being
+ treated as errors on compile.
+
``--profiling-output=<path>``
Used in conjunction with ``--profiling-format`` to output to a given path.
diff --git a/Help/release/dev/werror-property.rst b/Help/release/dev/werror-property.rst
index c337df7..84c825f 100644
--- a/Help/release/dev/werror-property.rst
+++ b/Help/release/dev/werror-property.rst
@@ -6,3 +6,8 @@ werror-property
Target Property. If :prop_tgt:`COMPILE_WARNING_AS_ERROR` is true, it expands
to a different flag depending on the compiler such that any warnings at
compile will be treated as errors.
+
+* :manual:`cmake(1)` gained the command-line option
+ ``--compile-no-warning-as-error`` which causes the values of
+ the :prop_tgt:`COMPILE_WARNING_AS_ERROR` target property and
+ :variable:`CMAKE_COMPILE_WARNING_AS_ERROR` variable to be ignored.