Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmake: fix when cross compiling (#252)
To compile protobuf, CMake needs to use the protoc and grpc-cpp-plugin in the host architecture. Unfortunately by default the protoc and grpc-cpp-plugin are the one for the Target. And since gRPC 1.52 they are explictly not exported when Cross Compiling to avoid architecture mismatch. See: grpc/grpc@831d2a6 Fix this by looking at the correct program See example. https://github.com/grpc/grpc/blob/master/examples/cpp/cmake/common.cmake#L54-L62 Signed-off-by: Clément Péron <peron.clem@gmail.com>
- Loading branch information