Skip to content

Commit

Permalink
adapt to the newer versions of ubuntu and grpc
Browse files Browse the repository at this point in the history
  • Loading branch information
npoltorapavlo committed Oct 17, 2024
1 parent 00e1c43 commit 05d0ff8
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/BuildThunder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ set -e
############################
# 1. Install Dependencies

sudo apt install -y build-essential cmake ninja-build libusb-1.0-0-dev zlib1g-dev libssl-dev
sudo apt install -y build-essential pkg-config cmake ninja-build libusb-1.0-0-dev zlib1g-dev libssl-dev

pip install jsonref
PIP_BREAK_SYSTEM_PACKAGES=1 pip install jsonref

############################
# 2. Build Thunder Tools
Expand Down
8 changes: 7 additions & 1 deletion CloudStore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,13 @@ add_custom_target(protoc
)
add_dependencies(${PLUGIN_IMPLEMENTATION} protoc)

target_link_libraries(${PLUGIN_IMPLEMENTATION} PRIVATE grpc++)
find_package(gRPC CONFIG)
if (gRPC_FOUND)
set(GRPC_LIBS gRPC::grpc++)
else ()
set(GRPC_LIBS grpc++)
endif ()
target_link_libraries(${PLUGIN_IMPLEMENTATION} PRIVATE ${GRPC_LIBS})
find_program(GRPC_CPP_PLUGIN grpc_cpp_plugin REQUIRED)

add_custom_target(protoc-gen-grpc
Expand Down
8 changes: 7 additions & 1 deletion CloudStore/grpc/l0test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,13 @@ add_custom_target(protoc
)
add_dependencies(${PROJECT_NAME} protoc)

target_link_libraries(${PROJECT_NAME} PRIVATE grpc++)
find_package(gRPC CONFIG)
if (gRPC_FOUND)
set(GRPC_LIBS gRPC::grpc++)
else ()
set(GRPC_LIBS grpc++)
endif ()
target_link_libraries(${PROJECT_NAME} PRIVATE ${GRPC_LIBS})
find_program(GRPC_CPP_PLUGIN grpc_cpp_plugin REQUIRED)

add_custom_target(protoc-gen-grpc
Expand Down
8 changes: 7 additions & 1 deletion CloudStore/grpc/l2test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,13 @@ add_custom_target(protoc
)
add_dependencies(${PROJECT_NAME} protoc)

target_link_libraries(${PROJECT_NAME} PRIVATE grpc++)
find_package(gRPC CONFIG)
if (gRPC_FOUND)
set(GRPC_LIBS gRPC::grpc++)
else ()
set(GRPC_LIBS grpc++)
endif ()
target_link_libraries(${PROJECT_NAME} PRIVATE ${GRPC_LIBS})
find_program(GRPC_CPP_PLUGIN grpc_cpp_plugin REQUIRED)

add_custom_target(protoc-gen-grpc
Expand Down

0 comments on commit 05d0ff8

Please sign in to comment.