With the release of CMake 4.0, compatibility with CMake versions < 3.5 is no longer supported. The CMAKE_MINIMUM_REQUIRED needs to be updated to at least 3.5 which I have applied manually in the Fedora package, or use the new form that includes a maximum version compatibility.
For reference:
https://fedoraproject.org/wiki/Changes/CMake4.0
Fedora tracker bug:
https://bugzilla.redhat.com/show_bug.cgi?id=2381455