diff --git a/llvm/cmake/modules/FindGRPC.cmake b/llvm/cmake/modules/FindGRPC.cmake --- a/llvm/cmake/modules/FindGRPC.cmake +++ b/llvm/cmake/modules/FindGRPC.cmake @@ -21,6 +21,9 @@ set(GRPC_CPP_PLUGIN $) set(PROTOC ${Protobuf_PROTOC_EXECUTABLE}) else() + if (NOT BUILD_SHARED_LIBS) + message(WARNING "gRPC and Protobuf will be linked dynamically. If you want static linking build gRPC from sources.") + endif() find_program(GRPC_CPP_PLUGIN grpc_cpp_plugin) find_program(PROTOC protoc) if (GRPC_CPP_PLUGIN-NOTFOUND OR PROTOC-NOTFOUND)