我正在尝试构建 google-cloud-cpp,但出现错误(见下文)。我曾尝试使用 VC++ 和 来构建它g++
,但是在使用两者时我都遇到了同样的错误。我使用 cmake-gui。
构建环境:Visual Studios 2017
操作系统:Windows 10 Pro 64-bit构建环境:Mingw-w64 8.1.0
操作系统:Windows 10 Pro 64-bit
目标: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)