Now that the cmake setting -Werror=dev
is set since commit 6a13a6106e3c1ebe95ba6430184d6260a7b942bd for the CI, guix and the dev cmake preset, it could make sense to notify developers about any warnings.
So do that with a single AUTHOR_WARNING
.
This can be tested by introducing a bug, like:
0diff --git a/CMakeLists.txt b/CMakeLists.txt
1index 6017775fa7..5610e03c66 100644
2--- a/CMakeLists.txt
3+++ b/CMakeLists.txt
4@@ -589,7 +589,7 @@ set(Python3_FIND_FRAMEWORK LAST CACHE STRING "")
5 # improves compatibility with Python version managers that use shims.
6 set(Python3_FIND_UNVERSIONED_NAMES FIRST CACHE STRING "")
7 mark_as_advanced(Python3_FIND_FRAMEWORK Python3_FIND_UNVERSIONED_NAMES)
8-find_package(Python3 3.10 COMPONENTS Interpreter)
9+find_package(Python3 3.210 COMPONENTS Interpreter)
10 if(NOT TARGET Python3::Interpreter)
11 list(APPEND configure_warnings
12 "Minimum required Python not found."
Fixes #31476.