[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} DESTINATION ${gRPC_INSTALL_CMAKEDIR}
NAMESPACE gRPC:: NAMESPACE gRPC::
) )
install(EXPORT gRPCPluginTargets if(gRPC_BUILD_CODEGEN)
DESTINATION ${gRPC_INSTALL_CMAKEDIR} install(EXPORT gRPCPluginTargets
NAMESPACE gRPC:: DESTINATION ${gRPC_INSTALL_CMAKEDIR}
) NAMESPACE gRPC::
)
endif()
endif() endif()
include(CMakePackageConfigHelpers) include(CMakePackageConfigHelpers)

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

Loading…
Cancel
Save