google-cloud-cpp Сбой генерации CMake

Я пытаюсь собрать google-cloud-cpp, но получаю сообщение об ошибке (см. Ниже). Я попытался построить его с использованием как VC++, так и g++, но я получаю ту же ошибку во время обоих. Я использую cmake-gui.

  • Среда сборки: Visual Studios 2017
    ОС: Windows 10 Pro 64-битная

  • Среда сборки: Mingw-w64 8.1.0
    ОС: Windows 10 Pro 64-битная

Цель: 64-разрядная

Ошибка:

CMake Error at cmake/IncludeGMock.cmake:38 (add_library):
  Cannot find source file:

    D:/google-cloud-cpp/third_party/googletest/googletest/src/gtest-all.cc

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
  .hpp .hxx .in .txx
Call Stack (most recent call first):
  cmake/GoogleCloudCppCommon.cmake:48 (include)
  google/cloud/CMakeLists.txt:42 (include)


CMake Error at cmake/IncludeGMock.cmake:38 (add_library):
  No SOURCES given to target: gmock
Call Stack (most recent call first):
  cmake/GoogleCloudCppCommon.cmake:48 (include)
  google/cloud/CMakeLists.txt:42 (include)

1 ответ

После git клона https://github.com/GoogleCloudPlatform/google-cloud-cpp.git

Введите каталог

Запустите обновление подмодуля git --init

Другие вопросы по тегам