mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 04:40:56 -06:00
Add `COMPILE_WARNING_AS_ERROR` target property and supporting `CMAKE_COMPILE_WARNING_AS_ERROR` variable. `COMPILE_WARNING_AS_ERROR` is initialized by `CMAKE_COMPILE_WARNING_AS_ERROR`. It is a boolean variable. If it is true, it expands to a different flag depending on the compiler such that any warnings at compile will be treated as errors. Supports compiler ids that I could find a relevant flag for.
10 lines
250 B
ReStructuredText
10 lines
250 B
ReStructuredText
CMAKE_COMPILE_WARNING_AS_ERROR
|
|
------------------------------
|
|
|
|
.. versionadded:: 3.24
|
|
|
|
Specify whether to treat warnings on compile as errors.
|
|
|
|
This variable is used to initialize the
|
|
:prop_tgt:`COMPILE_WARNING_AS_ERROR` property on all the targets.
|