[Build] Added missing gRPC_BUILD_CODEGEN (#32986)

Fixes https://github.com/grpc/grpc/issues/32885
pull/32676/head
Esun Kim 2 years ago committed by GitHub
parent 92e28af851
commit b684c57bb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      CMakeLists.txt
  2. 10
      templates/CMakeLists.txt.template

10
CMakeLists.txt generated

@ -26257,10 +26257,12 @@ if(gRPC_INSTALL)
DESTINATION ${gRPC_INSTALL_CMAKEDIR}
NAMESPACE gRPC::
)
install(EXPORT gRPCPluginTargets
DESTINATION ${gRPC_INSTALL_CMAKEDIR}
NAMESPACE gRPC::
)
if(gRPC_BUILD_CODEGEN)
install(EXPORT gRPCPluginTargets
DESTINATION ${gRPC_INSTALL_CMAKEDIR}
NAMESPACE gRPC::
)
endif()
endif()
include(CMakePackageConfigHelpers)

@ -812,10 +812,12 @@
DESTINATION <%text>${gRPC_INSTALL_CMAKEDIR}</%text>
NAMESPACE gRPC::
)
install(EXPORT gRPCPluginTargets
DESTINATION <%text>${gRPC_INSTALL_CMAKEDIR}</%text>
NAMESPACE gRPC::
)
if(gRPC_BUILD_CODEGEN)
install(EXPORT gRPCPluginTargets
DESTINATION <%text>${gRPC_INSTALL_CMAKEDIR}</%text>
NAMESPACE gRPC::
)
endif()
endif()
include(CMakePackageConfigHelpers)

Loading…
Cancel
Save