[CMake] Bump the minimum required version to 3.31 (#223854) This is a follow up to e192ec42b426f6ffbc25419238a90f3c59088587 which changes the warning to an error when using CMake older than 3.31. See https://discourse.llvm.org/t/rfc-raising-minimum-required-cmake-version-to-3-31/91086. Co-authored-by: Mehdi Amini <joker.eph@gmail.com> GitOrigin-RevId: eb9bb7d826f80cecc675c0bfa0ec4b61eb1be05a