CMake Error at CMakeLists.txt:51 (add_library): Cannot find source file:


[cmake] CMake Error at CMakeLists.txt:51 (add_library):
[cmake] Cannot find source file:
[cmake]
[cmake] cpptoc/base_scoped_cpptoc.cc
[cmake]
[cmake] Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
[cmake] .hxx .in .txx

原因:

在libcef_dll下的cpptoc/base_scoped_cpptoc.cc文件的后缀给篡改成了base_scoped_cpptoc.cc000666。导致找不到该文件。不知道是那个傻逼hk搞的鬼。淦。

参考:(1条消息) CMake Error at CMakeLists.txt:51 (add_library): Cannot find source file:_星辰大海在梦中的博客-CSDN博客

原文地址:https://www.cnblogs.com/tingtaishou/p/15120220.html