我正在尝试构建,但是我得到了一个错误(见下文)。我尝试使用VC++和g++构建它,但是在这两个过程中我都得到了相同的错误。我用的是cmake。
目标: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)发布于 2018-09-07 12:09:39
https://stackoverflow.com/questions/52220754
复制相似问题