diff --git a/CMakeLists.txt b/CMakeLists.txt index 9b0446a1e793b2450368350eb6305bd88c256d42..1adf092f9b2200f2f4e4a048e7a1a3bc98aba16e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10831,13 +10831,6 @@ 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) diff --git a/templates/CMakeLists.txt.template b/templates/CMakeLists.txt.template index 4aa3dbfd1c5bc96456c79ca119d8451889a4f57b..444fb6a2dc30450516efa5bc865634f5aa81ee76 100644 --- a/templates/CMakeLists.txt.template +++ b/templates/CMakeLists.txt.template @@ -554,13 +554,6 @@ endif() </%def> - if (gRPC_INSTALL) - install(EXPORT gRPCTargets - DESTINATION <%text>${CMAKE_INSTALL_CMAKEDIR}</%text> - NAMESPACE gRPC:: - ) - endif() - foreach(_config gRPCConfig gRPCConfigVersion) configure_file(tools/cmake/<%text>${_config}</%text>.cmake.in <%text>${_config}</%text>.cmake @ONLY)