Added cmake abseil include guard
This commit is contained in:
parent
637a699969
commit
b6ee841d7c
@ -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…
Reference in New Issue
Block a user