vcpkg/ports/grpc/disable-csharp-ext.patch

23 lines
504 B
Diff
Raw Normal View History

2018-04-26 21:23:44 +08:00
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8c285e7..cffd93f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5058,6 +5058,9 @@ endif (gRPC_BUILD_CODEGEN)
2017-05-20 06:24:22 +08:00
endif (gRPC_BUILD_TESTS)
+option(gRPC_INSTALL_CSHARP_EXT "" ON)
2017-09-07 19:56:04 +08:00
+
2018-04-26 21:23:44 +08:00
+if (gRPC_INSTALL_CSHARP_EXT)
2017-05-20 06:24:22 +08:00
add_library(grpc_csharp_ext SHARED
src/csharp/ext/grpc_csharp_ext.c
)
2018-04-26 21:23:44 +08:00
@@ -5101,6 +5104,7 @@ if (gRPC_INSTALL)
ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
2017-05-20 06:24:22 +08:00
)
2018-04-26 21:23:44 +08:00
endif()
+endif (gRPC_INSTALL_CSHARP_EXT)
2017-09-07 19:56:04 +08:00
2018-04-26 21:23:44 +08:00
if (gRPC_BUILD_TESTS)
2017-05-20 06:24:22 +08:00