mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-31 05:03:22 +08:00
30 lines
869 B
Diff
30 lines
869 B
Diff
--- a/CMakeLists.txt Tue Aug 29 22:24:15 2017
|
|
+++ b/CMakeLists.txt Mon Sep 04 00:43:56 2017
|
|
@@ -4574,6 +4574,8 @@
|
|
|
|
endif (gRPC_BUILD_TESTS)
|
|
|
|
+option(gRPC_INSTALL_CSHARP_EXT "" ON)
|
|
+
|
|
add_library(grpc_csharp_ext SHARED
|
|
src/csharp/ext/grpc_csharp_ext.c
|
|
)
|
|
@@ -4582,7 +4584,7 @@
|
|
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
|
|
DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
|
|
)
|
|
@@ -4613,7 +4615,7 @@
|
|
|
|
|
|
|
|
-if (gRPC_INSTALL)
|
|
+if (gRPC_INSTALL AND gRPC_INSTALL_CSHARP_EXT)
|
|
install(TARGETS grpc_csharp_ext EXPORT gRPCTargets
|
|
RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
|
|
LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
|