Added cmake abseil include guard

pull/9928/head
Esun Kim 3 years ago
parent 637a699969
commit b6ee841d7c
  1. 5
      cmake/abseil-cpp.cmake

@ -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) if(NOT ABSL_ROOT_DIR)
set(ABSL_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/abseil-cpp) set(ABSL_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/abseil-cpp)
endif() endif()

Loading…
Cancel
Save