blob: afb5cfa715a711559d5e47684fe44ab8c1e7423c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b7555b1bc3..edbffea76c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -14204,6 +14204,13 @@ endif (gRPC_BUILD_TESTS)
+if (gRPC_INSTALL)
+ install(EXPORT gRPCTargets
+ DESTINATION ${CMAKE_INSTALL_CMAKEDIR}
+ NAMESPACE gRPC::
+ )
+endif()
+
foreach(_config gRPCConfig gRPCConfigVersion)
configure_file(tools/cmake/${_config}.cmake.in
${_config}.cmake @ONLY)
|