The solution was to install cmake 3.24.2. This fixes the compilation process.