使用 PATHS ${PROTOBUF_SEARCH_PATH}
if (NOT ${Protobuf_FOUND})message( FATAL_ERROR "Could not find Protobuf!""protobuf_generate_cpp"。如果我检查Protobuff的Install文件夹,就会有一个包含函数定义的CMake文件<istall pa
nmake installfind_package(Protobuf REQUIRED)-- Could NOT find Protobuf(missing: Protobuf_LIBRARIES Protobuf_INCLUDE_DIR)
我认为我应该设置环境变量。有什么有效的方法吗?在protobuf-master/cmake/install.cmake中,我可以<
with the libraries filesystem and system main.cpp Could not find a package configuration file provided by "Protobuf" with anyof "Protobuf" to CMAKE_PREFIX_PATH or