-
Notifications
You must be signed in to change notification settings - Fork 15.9k
Closed
Description
(This issue prevents grpc from upgrading to protobuf's 22.x release)
When protobuf is added as a grpc dependency (via cmake's add_subdirectory
), it seems that the protobuf cmake build is misconfigured on windows and the build fails with the following error:
CMake Error: install(EXPORT "protobuf-targets" ...) includes target "libprotobuf-lite" which requires target "absl_absl_check" that is not in the export set.
CMake Error: install(EXPORT "protobuf-targets" ...) includes target "libprotobuf-lite" which requires target "absl_absl_log" that is not in the export set.
CMake Error: install(EXPORT "protobuf-targets" ...) includes target "libprotobuf-lite" which requires target "absl_algorithm" that is not in the export set.
CMake Error: install(EXPORT "protobuf-targets" ...) includes target "libprotobuf-lite" which requires target "absl_base" that is not in the export set.
CMake Error: install(EXPORT "protobuf-targets" ...) includes target "libprotobuf-lite" which requires target "absl_bind_front" that is not in the export set.
CMake Error: install(EXPORT "protobuf-targets" ...) includes target "libprotobuf-lite" which requires target "absl_bits" that is not in the export set.
CMake Error: install(EXPORT "protobuf-targets" ...) includes target "libprotobuf-lite" which requires target "absl_btree" that is not in the export set.
...
other similar errors follow.
(On linux the cmake builds seems to work just file). Is there something special about how the absl dependency is added to protobuf on windows that could cause this?