mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-08 09:37:58 +00:00
fix: grpc compilation with splitted gpr library
Co-Authored-By: Leonardo Di Donato <leodidonato@gmail.com> Signed-off-by: Lorenzo Fontana <lo@linux.com>
This commit is contained in:
parent
e51ee60646
commit
0d34394817
@ -42,6 +42,15 @@ if(NOT USE_BUNDLED_DEPS)
|
|||||||
message(FATAL_ERROR "Couldn't find system protobuf")
|
message(FATAL_ERROR "Couldn't find system protobuf")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# gpr
|
||||||
|
find_library(GPR_LIB NAMES gpr)
|
||||||
|
|
||||||
|
if(GPR_LIB)
|
||||||
|
message(STATUS "Found gpr lib: ${GPR_LIB}")
|
||||||
|
else()
|
||||||
|
message(FATAL_ERROR "Couldn't find system gpr")
|
||||||
|
endif()
|
||||||
|
|
||||||
# gRPC todo(fntlnz, leodido): check that gRPC version is greater or equal than 1.8.0
|
# gRPC todo(fntlnz, leodido): check that gRPC version is greater or equal than 1.8.0
|
||||||
find_path(GRPCXX_INCLUDE NAMES grpc++/grpc++.h)
|
find_path(GRPCXX_INCLUDE NAMES grpc++/grpc++.h)
|
||||||
if(GRPCXX_INCLUDE)
|
if(GRPCXX_INCLUDE)
|
||||||
|
@ -75,6 +75,7 @@ target_include_directories(
|
|||||||
"${YAMLCPP_INCLUDE_DIR}"
|
"${YAMLCPP_INCLUDE_DIR}"
|
||||||
"${CIVETWEB_INCLUDE_DIR}"
|
"${CIVETWEB_INCLUDE_DIR}"
|
||||||
"${GRPC_INCLUDE}"
|
"${GRPC_INCLUDE}"
|
||||||
|
"${GRPCPP_INCLUDE}"
|
||||||
"${PROTOBUF_INCLUDE}"
|
"${PROTOBUF_INCLUDE}"
|
||||||
"${CMAKE_CURRENT_BINARY_DIR}"
|
"${CMAKE_CURRENT_BINARY_DIR}"
|
||||||
"${DRAIOS_DEPENDENCIES_DIR}/yaml-${DRAIOS_YAML_VERSION}/target/include")
|
"${DRAIOS_DEPENDENCIES_DIR}/yaml-${DRAIOS_YAML_VERSION}/target/include")
|
||||||
@ -83,8 +84,9 @@ target_link_libraries(
|
|||||||
falco
|
falco
|
||||||
falco_engine
|
falco_engine
|
||||||
sinsp
|
sinsp
|
||||||
"${GRPCPP_LIB}"
|
"${GPR_LIB}"
|
||||||
"${GRPC_LIB}"
|
"${GRPC_LIB}"
|
||||||
|
"${GRPCPP_LIB}"
|
||||||
"${PROTOBUF_LIB}"
|
"${PROTOBUF_LIB}"
|
||||||
"${LIBYAML_LIB}"
|
"${LIBYAML_LIB}"
|
||||||
"${YAMLCPP_LIB}"
|
"${YAMLCPP_LIB}"
|
||||||
|
Loading…
Reference in New Issue
Block a user