Skip to content

Commit

Permalink
Bump the submodule carta-protobuf (#1367)
Browse files Browse the repository at this point in the history
* Include absl libraries for the new version of protobuf

* bump the submodule carta-protobuf

* Correct the identification of the new protobuf version

* Bumped protobuf version

---------

Co-authored-by: Adrianna Pińska <[email protected]>
  • Loading branch information
markccchiang and confluence authored Apr 23, 2024
1 parent be2999f commit 848e982
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,17 @@ endif ()
FIND_PACKAGE(HDF5 REQUIRED COMPONENTS CXX)
FIND_PACKAGE(Protobuf REQUIRED)
INCLUDE_DIRECTORIES(${PROTOBUF_INCLUDE_DIR})

if (Protobuf_VERSION VERSION_GREATER_EQUAL "4.25.3")
FIND_PACKAGE(absl REQUIRED)
set(PROTOBUF_LIBRARY
${PROTOBUF_LIBRARY}
absl_hash
absl_log_internal_message
absl_log_internal_nullguard)
message(STATUS "Newer protobuf version (${Protobuf_VERSION}) includes abseil libraries")
endif ()

FIND_PACKAGE(Threads)
INCLUDE_DIRECTORIES(${HDF5_INCLUDE_DIR})

Expand Down
2 changes: 1 addition & 1 deletion carta-protobuf
Submodule carta-protobuf updated 1 files
+2 −2 build_proto.sh

0 comments on commit 848e982

Please sign in to comment.