详细错误

CMake Error at CMakeLists.txt:565 (message):
  Can't find third_party/gtest.  Run git submodule update --init, or disable
  with CMake -DBUILD_TESTS=OFF.

解决办法

cmake .. -DBUILD_TESTS=OFF