Skip to content

Commit 8920f2a

Browse files
authored
Fix importing of latest protobuf version (#181)
# 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. ... ```
1 parent 30226aa commit 8920f2a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

FindGrpc.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
include("GenericFindDependency")
22

33
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)
4+
option(protobuf_INSTALL "Install protobuf binaries and files" OFF)
5+
option(utf8_range_ENABLE_INSTALL "Configure installation" OFF)
46

57
GenericFindDependency(
68
TARGET grpc++

FindProtobuf.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
# WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
1111
#
1212

13+
option(protobuf_INSTALL "Install protobuf binaries and files" OFF)
14+
option(utf8_range_ENABLE_INSTALL "Configure installation" OFF)
15+
1316
include("GenericFindDependency")
1417
option(protocol_BUILD_TESTS "" OFF)
1518
GenericFindDependency(

0 commit comments

Comments
 (0)