diff --git a/examples/grpc/chat/server/CMakeLists.txt b/examples/grpc/chat/server/CMakeLists.txt index d8894a2e..e7fef89d 100644 --- a/examples/grpc/chat/server/CMakeLists.txt +++ b/examples/grpc/chat/server/CMakeLists.txt @@ -20,6 +20,12 @@ if(NOT TARGET WrapgRPC::WrapgRPCPlugin OR NOT TARGET WrapProtoc::WrapProtoc return() endif() +if(MINGW) + message(WARNING "${PROJECT_NAME} uses reference grpc++ library that doesn't officially support" + " MinGW. Please use the MSVC compiler to build this example. The correct work is not" + " guaranteed otherwise.") +endif() + set(proto_files "${CMAKE_CURRENT_LIST_DIR}/../proto/simplechat.proto") set(out_dir "${CMAKE_CURRENT_BINARY_DIR}") diff --git a/examples/grpc/magic8ball/grpc_server_example/CMakeLists.txt b/examples/grpc/magic8ball/grpc_server_example/CMakeLists.txt index 24eb475f..853e149b 100644 --- a/examples/grpc/magic8ball/grpc_server_example/CMakeLists.txt +++ b/examples/grpc/magic8ball/grpc_server_example/CMakeLists.txt @@ -16,6 +16,12 @@ if(NOT TARGET WrapgRPC::WrapgRPCPlugin OR NOT TARGET WrapProtoc::WrapProtoc return() endif() +if(MINGW) + message(WARNING "${PROJECT_NAME} uses reference grpc++ library that doesn't officially support" + " MinGW. Please use the MSVC compiler to build this example. The correct work is not" + " guaranteed otherwise.") +endif() + # Avoid "Protobuf requires at least C++11." errors set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) diff --git a/examples/grpc/vehicle/grpc_vehicle_server/CMakeLists.txt b/examples/grpc/vehicle/grpc_vehicle_server/CMakeLists.txt index d91229ff..a1171520 100644 --- a/examples/grpc/vehicle/grpc_vehicle_server/CMakeLists.txt +++ b/examples/grpc/vehicle/grpc_vehicle_server/CMakeLists.txt @@ -16,6 +16,12 @@ if(NOT TARGET WrapgRPC::WrapgRPCPlugin OR NOT TARGET WrapProtoc::WrapProtoc return() endif() +if(MINGW) + message(WARNING "${PROJECT_NAME} uses reference grpc++ library that doesn't officially support" + " MinGW. Please use the MSVC compiler to build this example. The correct work is not" + " guaranteed otherwise.") +endif() + set(proto_files "${CMAKE_CURRENT_LIST_DIR}/../proto/vehicleservice.proto" "${CMAKE_CURRENT_LIST_DIR}/../proto/naviservice.proto")