mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-07 14:50:15 -05:00
76a08cd253
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.
11 lines
336 B
ReStructuredText
11 lines
336 B
ReStructuredText
COMPILE_WARNING_AS_ERROR
|
|
------------------------
|
|
|
|
.. versionadded:: 3.24
|
|
|
|
Specify whether to treat warnings on compile as errors.
|
|
If enabled, adds a flag to treat warnings on compile as errors.
|
|
|
|
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.
|