This is causing us issues since CMake requires 1.10 in order to build Fortran (and C++ modules, but that isn’t relevant for us). Note that CentOS 7 makes Ninja 1.10 available via the EPEL, so we have builds that work on EL7 which don’t on EL8 due to outdated packages, which seems weird.
Keep in mind that CentOS 8, is now CentOS Stream 8, which means that CentOS does not compare to Rocky Linux 8 OR RHEL 8. I confirmed that the version in Rocky Linux 8 is as you reported, but I do not have an RHEL 8 system to compare it to. I suspect that it is also 1.8.2-1.