Files
CMake/Help/release/dev/werror-property.rst
T
Martin Duffy 65f7053d6c COMPILE_WARNING_AS_ERROR: Add command-line option
Add command-line option `--compile-no-warning-as-error` to ignore value of
`COMPILE_WARNING_AS_ERROR`.

Issue: #19085
2022-05-18 10:30:30 -04:00

14 lines
620 B
ReStructuredText

werror-property
---------------
* Added the Target Property :prop_tgt:`COMPILE_WARNING_AS_ERROR` and the
Variable :variable:`CMAKE_COMPILE_WARNING_AS_ERROR` which initializes the
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.