Dark Sorrow
Dark Sorrow

Reputation: 1937

google-cloud-cpp CMake Generation Failed

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.

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)

Upvotes: 1

Views: 468

Answers (1)

Dark Sorrow
Dark Sorrow

Reputation: 1937

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

Enter directory

Run git submodule update --init

Upvotes: 0

Related Questions