On Gentoo we are are already using cmake 4.1.2 which warns that compatibility with versions >3.10 will be removed in a future release.
I kindly ask to raise the minimum version to avoid these warnings.
Original report: https://bugs.gentoo.org/964499
From my brief testing 3.10 works so I will make a PR