Skip to content

Commit

Permalink
Fix: differentiate how protobuf is found in mac and linux (#288)
Browse files Browse the repository at this point in the history
As titled.
  • Loading branch information
LiSu authored Jul 1, 2024
1 parent 4c23f79 commit 3a2ba5a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion graphlearn/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,11 @@ if (WITH_VINEYARD)
endif ()

## protobuf and gRPC package
find_package (Protobuf CONFIG QUIET)
if (APPLE)
find_package(Protobuf CONFIG QUIET)
else ()
find_package(Protobuf QUIET)
endif ()
if (NOT Protobuf_FOUND)
set (gRPC_INSTALL_DIR ${THIRD_PARTY_DIR}/grpc/build)
list (APPEND CMAKE_PREFIX_PATH ${gRPC_INSTALL_DIR})
Expand Down

0 comments on commit 3a2ba5a

Please sign in to comment.