Search code examples
c++grpc

How to build gRPC++ with OpenSSL instead of BoringSSL


My project uses MySQL connector, which use OpenSSL as its dependency. I've integrate gRPC with my project using FetchContent, with OpenSSL installed in my system. But it still use BoringSSL.


Solution

  • Add these to your CMakeList.txt

    set(gRPC_SSL_PROVIDER package)