Added cmake abseil include guard

This commit is contained in:
Esun Kim 2022-05-06 15:09:13 -07:00
parent 637a699969
commit b6ee841d7c

View File

@ -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()