During the CMake called with cmake .., we have the following error :
Cloning into 'googlebenchmark-src'...
fatal: invalid reference: origin/master
Here, the Benchmark branch must be origin/main in the src/cmake/GoogleBenchmark.cmake file.
In my side, this change successfully overcomes the error.