Request to update add_compile_options docs: the example sets warnings-as-error flags in the old way, whereas now we have dedicated mechanisms
CMake 3.24 added the COMPILE_WARNING_AS_ERROR
target property and defaulter variable.
Link to the docs page: https://cmake.org/cmake/help/latest/command/add_compile_options.html#example
The part about the warnings-as-errors flags could simply be removed, or a link added to the new mechanism (probably to the defaulter variable page and not the target one, since this doc page is for add_compile_options
and not target_compile_options
).
It would also be nice to backport this change to the v3.24 docs.