Skip to content

Protobuf cmake build on windows fails on requiring absl targets which are "not in the export set". #12185

@jtattermusch

Description

@jtattermusch

(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?

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions