google-cloud-cpp CMake Generation Failed

446 Views Asked by At

I'm trying to build google-cloud-cpp, but I get an error (see below). I have attempted building it using both VC++ and g++, but I get the same error during with both. I use cmake-gui.

  • Build Environment : Visual Studios 2017
    OS : Windows 10 Pro 64-bit

  • Build Environment : Mingw-w64 8.1.0
    OS : Windows 10 Pro 64-bit

Target : 64-bit

Error:

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

There are 1 best solutions below

0
Dark Sorrow On

After git clone https://github.com/GoogleCloudPlatform/google-cloud-cpp.git

Enter directory

Run git submodule update --init