Rather than create our own warning logging/handling, which isn’t ideal (#31476), use CMakes AUTHOR_WARNING
(also pointed out by purpleKarrot here: #31665 (comment)), and turn on -Werror=dev
in the CI.
Would result in failures like:
0-- Performing Test LINKER_SUPPORTS__WL__Z_SEPARATE_CODE - Success
1-- Could NOT find Python3 (missing: Python3_EXECUTABLE Interpreter) (Required is at least version "3.10")
2CMake Error (dev) at CMakeLists.txt:592 (message):
3 Minimum required Python not found. Rpcauth tests are disabled.
4This error is for project developers. Use -Wno-error=dev to suppress it.
5
6-- Configuring incomplete, errors occurred!