aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates
diff options
context:
space:
mode:
authorGravatar Jozef Izso <jozef.izso@gmail.com>2018-04-26 17:39:17 +0200
committerGravatar Jozef Izso <jozef.izso@gmail.com>2018-06-19 17:24:08 +0200
commitbbdee16b992c7777476ffaba5a9df3f8c0e9f60c (patch)
tree79bf896067dd40fc8b6e4bc868f35ca0dff50aca /templates
parent547bb5e66f68f0312b72d31f0aca27b889045520 (diff)
Allow conditional builds of grpc_csharp_ext for vcpkg manager
Diffstat (limited to 'templates')
-rw-r--r--templates/CMakeLists.txt.template6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/CMakeLists.txt.template b/templates/CMakeLists.txt.template
index a7f59e15a7..de13d02e2a 100644
--- a/templates/CMakeLists.txt.template
+++ b/templates/CMakeLists.txt.template
@@ -87,6 +87,7 @@
# Options
option(gRPC_BUILD_TESTS "Build tests" OFF)
option(gRPC_BUILD_CODEGEN "Build codegen" ON)
+ option(gRPC_BUILD_CSHARP_EXT "Build C# extensions" ON)
set(gRPC_INSTALL_default ON)
if (NOT CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
@@ -298,6 +299,11 @@
if (gRPC_BUILD_TESTS)
${cc_library(lib)}
endif (gRPC_BUILD_TESTS)
+ % elif lib.name in ['grpc_csharp_ext']:
+ if (gRPC_BUILD_CSHARP_EXT)
+ ${cc_library(lib)}
+ ${cc_install(lib)}
+ endif (gRPC_BUILD_CSHARP_EXT)
% else:
${cc_library(lib)}
% if not lib.build in ["tool"]: