aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates
diff options
context:
space:
mode:
authorGravatar Alex Merry <alex.merry@kde.org>2017-05-15 21:04:16 +0100
committerGravatar Alex Merry <alex.merry@kde.org>2017-05-15 22:42:03 +0100
commitb5984fa8d765c251a8ad2a0717c50be2710fa4b4 (patch)
tree41839639871d38832306619355d42cfbc0caa8db /templates
parent8ced27a3641d3818b6324254e197141c57a37cee (diff)
Revert "cmake: fix #8729"
Diffstat (limited to 'templates')
-rw-r--r--templates/CMakeLists.txt.template7
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/CMakeLists.txt.template b/templates/CMakeLists.txt.template
index 3e03afdf57..acf39305fa 100644
--- a/templates/CMakeLists.txt.template
+++ b/templates/CMakeLists.txt.template
@@ -618,6 +618,13 @@
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)