Skip to content

Commit

Permalink
yolo
Browse files Browse the repository at this point in the history
  • Loading branch information
rizesql committed Apr 17, 2024
1 parent 0e4bd62 commit fe91019
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
libprotobuf-dev libprotoc-dev protobuf-compiler
libprotobuf-dev libprotoc-dev protobuf-compiler=3.15.0
- name: Configure CMake
uses: ./.github/actions/configure-cmake
Expand Down
12 changes: 11 additions & 1 deletion cmake/dependencies.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
include(FetchContent)

find_package(Protobuf REQUIRED)
set(protobuf_MODULE_COMPATIBLE TRUE)
find_package(Protobuf CONFIG REQUIRED)
message(STATUS "Using protobuf ${Protobuf_VERSION}")

set(_PROTOBUF_LIBPROTOBUF protobuf::libprotobuf)
set(_REFLECTION gRPC::grpc++_reflection)
if(CMAKE_CROSSCOMPILING)
find_program(_PROTOBUF_PROTOC protoc)
else()
set(_PROTOBUF_PROTOC $<TARGET_FILE:protobuf::protoc>)
endif()

FetchContent_Declare(googleapis
URL https://github.com/googleapis/googleapis/archive/0e3b813b0d0da539eacbe86b8716feeed00943c5.tar.gz
Expand Down

0 comments on commit fe91019

Please sign in to comment.