mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-12 15:09:01 +08:00
d67ae2fa3f
Fix installing gRPCTargets*.cmake
19 lines
435 B
Diff
19 lines
435 B
Diff
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)
|