Install or load cmake
sudo apt-get install -y cmake
or
wget https://github.com/Kitware/CMake/releases/download/v3.25.1/cmake-3.25.1-linux-x86_64.sh
tar -xzvf cmake-3.25.1-linux-x86_64.sh
export PATH=cmake-3.25.1-linux-x86_64/bin:$PATH
The version of the cmake must be greater than 3.17.