所以find_package(protobuf 3.5.0 REQUIRED)会正常工作,但是find_package(protobuf 3.5.0 REQUIRED PATH I/only/wanted/to/help)会失败。您需要**protobuf_MODULE_COMPATIBLE**。我用的是CMake3.14。protobuf-config.cmake的最后3行是:
问CMake找不到Protobuf `protobuf_generate_cpp`ENProtobuf是google开发的一个序列化和反序列化的协议...
Available add-ons Advanced Security Enterprise-grade security features GitHub Copilot Enterprise-grade AI features Premium Support Enterprise-grade 24/7 support Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Provide feedback We read every piece of ...