Skip to content

Commit

Permalink
Added cmake abseil include guard
Browse files Browse the repository at this point in the history
  • Loading branch information
veblush committed May 6, 2022
1 parent 637a699 commit b6ee841
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmake/abseil-cpp.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
if(protobuf_ABSL_PROVIDER STREQUAL "module")
if(TARGET absl::strings)
# If absl is included already, skip including it.
# (https://github.com/grpc/grpc/issues/29608)
elseif(protobuf_ABSL_PROVIDER STREQUAL "module")
if(NOT ABSL_ROOT_DIR)
set(ABSL_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/abseil-cpp)
endif()
Expand Down

0 comments on commit b6ee841

Please sign in to comment.