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

30 lines
869 B
Diff
Raw Normal View History

2017-09-07 19:56:04 +08:00
--- a/CMakeLists.txt Tue Aug 29 22:24:15 2017
+++ b/CMakeLists.txt Mon Sep 04 00:43:56 2017
@@ -4574,6 +4574,8 @@
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
+
2017-05-20 06:24:22 +08:00
add_library(grpc_csharp_ext SHARED
src/csharp/ext/grpc_csharp_ext.c
)
2017-09-07 19:56:04 +08:00
@@ -4582,7 +4584,7 @@
2017-05-20 06:24:22 +08:00
set_target_properties(grpc_csharp_ext PROPERTIES COMPILE_PDB_NAME "grpc_csharp_ext"
COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
)
- if (gRPC_INSTALL)
+ if (gRPC_INSTALL AND gRPC_INSTALL_CSHARP_EXT)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc_csharp_ext.pdb
2017-09-07 19:56:04 +08:00
DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
2017-05-20 06:24:22 +08:00
)
2017-09-07 19:56:04 +08:00
@@ -4613,7 +4615,7 @@
2017-05-20 06:24:22 +08:00
-if (gRPC_INSTALL)
+if (gRPC_INSTALL AND gRPC_INSTALL_CSHARP_EXT)
install(TARGETS grpc_csharp_ext EXPORT gRPCTargets
2017-09-07 19:56:04 +08:00
RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}