mirror of
https://github.com/falcosecurity/falco.git
synced 2025-09-18 07:51:12 +00:00
fix: allow gRPC to take protobuf from custom pkgconfig path
Co-Authored-By: Leonardo Di Donato <leodidonato@gmail.com> Signed-off-by: Lorenzo Fontana <lo@linux.com>
This commit is contained in:
committed by
Leo Di Donato
parent
69031a4c9e
commit
d908a107b1
@@ -15,6 +15,7 @@ option(BUILD_STATIC_GRPC
|
||||
"Build a static version of gRPC (useful for building in Operating Systems that don't have the gRPC package)" OFF)
|
||||
|
||||
if(NOT BUILD_STATIC_GRPC)
|
||||
# todo(fntlnz, leodido): check that gRPC version is greater or equal than 1.8.0
|
||||
find_path(GRPCXX_INCLUDE NAMES grpc++/grpc++.h)
|
||||
if(GRPCXX_INCLUDE)
|
||||
set(GRPC_INCLUDE ${GRPCXX_INCLUDE})
|
||||
@@ -56,6 +57,7 @@ else()
|
||||
CONFIGURE_COMMAND ""
|
||||
BUILD_COMMAND
|
||||
CFLAGS=-Wno-implicit-fallthrough
|
||||
PKG_CONFIG_PATH=${PROTOBUF_SRC}
|
||||
PKG_CONFIG=${PKG_CONFIG_EXECUTABLE}
|
||||
make
|
||||
grpc_cpp_plugin
|
||||
|
Reference in New Issue
Block a user