Skip to content

Commit

Permalink
Use CONFIG mode to find protobuf to address the absl dependency issue. (
Browse files Browse the repository at this point in the history
#2899)

See also:
- protocolbuffers/protobuf#12292
- the macos CI failure:
https://github.com/alibaba/GraphScope/actions/runs/5271097039/jobs/9531496683

Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
  • Loading branch information
sighingnow committed Jun 15, 2023
1 parent cf81c7b commit bd7680f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion analytical_engine/CMakeLists.txt
Expand Up @@ -223,7 +223,10 @@ endif ()
find_package(libgrapelite REQUIRED)
include_directories(${LIBGRAPELITE_INCLUDE_DIRS})

find_package(Protobuf REQUIRED)
find_package(Protobuf CONFIG QUIET)
if (NOT Protobuf_FOUND)
find_package(Protobuf REQUIRED)
endif()
include_directories(${Protobuf_INCLUDE_DIRS})

if (ENABLE_JAVA_SDK)
Expand Down

0 comments on commit bd7680f

Please sign in to comment.