Skip to content

Fix importing of latest protobuf version #181

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 28, 2025

Conversation

RReichert
Copy link
Contributor

Changes

In order to use the latest protobuf v5.29.0 version, we need to tweek some compile options to remove the installation commands from a few targets, otherwise you will get the following errors:

-- Performing Test HAVE_CXX_FLAG_WNO_VARIADIC_MACROS
-- Performing Test HAVE_CXX_FLAG_WNO_VARIADIC_MACROS - Success
-- Configuring done (139.2s)
CMake Error: install(EXPORT "protobuf-targets" ...) includes target "libprotobuf-lite" which requires target "absl_absl_check" that is not in any export set.
CMake Error: install(EXPORT "protobuf-targets" ...) includes target "libprotobuf-lite" which requires target "absl_absl_log" that is not in any export set.
CMake Error: install(EXPORT "protobuf-targets" ...) includes target "libprotobuf-lite" which requires target "absl_algorithm" that is not in any export set.
CMake Error: install(EXPORT "protobuf-targets" ...) includes target "libprotobuf-lite" which requires target "absl_base" that is not in any export set.
CMake Error: install(EXPORT "protobuf-targets" ...) includes target "libprotobuf-lite" which requires target "absl_bind_front" that is not in any export set.
CMake Error: install(EXPORT "protobuf-targets" ...) includes target "libprotobuf-lite" which requires target "absl_bits" that is not in any export set.
CMake Error: install(EXPORT "protobuf-targets" ...) includes target "libprotobuf-lite" which requires target "absl_btree" that is not in any export set.
CMake Error: install(EXPORT "protobuf-targets" ...) includes target "libprotobuf-lite" which requires target "absl_cleanup" that is not in any export set.
CMake Error: install(EXPORT "protobuf-targets" ...) includes target "libprotobuf-lite" which requires target "absl_cord" that is not in any export set.
CMake Error: install(EXPORT "protobuf-targets" ...) includes target "libprotobuf-lite" which requires target "absl_core_headers" that is not in any export set.
CMake Error: install(EXPORT "protobuf-targets" ...) includes target "libprotobuf-lite" which requires target "absl_debugging" that is not in any export set.
CMake Error: install(EXPORT "protobuf-targets" ...) includes target "libprotobuf-lite" which requires target "absl_die_if_null" that is not in any export set.
CMake Error: install(EXPORT "protobuf-targets" ...) includes target "libprotobuf-lite" which requires target "absl_dynamic_annotations" that is not in any export set.
...

@RReichert RReichert requested a review from a team as a code owner April 28, 2025 04:51
@@ -1,6 +1,8 @@
include("GenericFindDependency")

option(ABSL_PROPAGATE_CXX_STD "Use CMake C++ standard meta features (e.g. cxx_std_11) that propagate to targets that link to Abseil" true)
option(protobuf_INSTALL "Install protobuf binaries and files" OFF)
Copy link
Contributor Author

@RReichert RReichert Apr 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to apply these changes here because gRPC also include protobuf internally

@RReichert RReichert merged commit 8920f2a into master Apr 28, 2025
3 checks passed
@RReichert RReichert deleted the rodrigor/fix-protobuf-submodule branch April 28, 2025 09:06
RReichert pushed a commit to swift-nav/albatross that referenced this pull request Apr 28, 2025
…on (#181) (#511)

Automated PR by Jenkins. If CI has passed successfully, merge away!



**cmake**  30226aa8  ->  8920f2a3
- 8920f2a3 : Fix importing of latest protobuf version
(swift-nav/cmake#181)


This pull request was created by
https://jenkins.ci.swift-nav.com/job/CI%20Infra/job/submodule-update/19843/.
RReichert pushed a commit to swift-nav/libsbp that referenced this pull request Apr 28, 2025
…on (#181) (#1474)

Automated PR by Jenkins. If CI has passed successfully, merge away!



**cmake**  30226aa8  ->  8920f2a3
- 8920f2a3 : Fix importing of latest protobuf version
(swift-nav/cmake#181)


This pull request was created by
https://jenkins.ci.swift-nav.com/job/CI%20Infra/job/submodule-update/19843/.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants