The gRPC C++ examples use this common CMake file <https://github.com/grpc/grpc/blob/master/examples/cpp/cmake/common.cmake> that has an option to fetch gRPC using CMake FetchContent instead of installing locally. This works for me, except that I can't figure out how to access the well known protobuf types from the protobuf submodule.
For example, I added this to the helloworld.proto example: import "google/protobuf/empty.proto"; and get: google/protobuf/empty.proto: File not found. helloworld.proto:17:1: Import "google/protobuf/empty.proto" was not found or had errors. make[2]: *** [helloworld.pb.cc] Error 1 make[1]: *** [CMakeFiles/hw_grpc_proto.dir/all] Error 2 make: *** [all] Error 2 empty.proto is in ./_deps/grpc-src/third_party/protobuf/src/google/protobuf/ . Is there something I can add to the CMake file to have this work? -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/380a92a8-9dbd-4399-8300-b82d06c2c710n%40googlegroups.com.