Cmake Error (unknown argument specified)

I’m using ubuntu 22.04, and python 3.10. when i run cmake comman while installing package it say

CMake Error at cmake/ecbuild_find_python.cmake:165 (if):
if given arguments:


Unknown arguments specified
Call Stack (most recent call first):
atlas/CMakeLists.txt:42 (ecbuild_find_python)

Please help

It seems like the last argument expands to nothing (the one after MATCHES). Putting it in quotes should help here.