summaryrefslogtreecommitdiff
path: root/grpc
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2021-04-21 11:12:53 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2021-04-21 11:13:25 +0200
commit9219708b1392769bb760eb96aefa39aefa03b282 (patch)
tree10c9fca8eec7fe1b827f141582affafd565b43bb /grpc
parentbf6005d5f4f893817723e26b844831c22532f2f1 (diff)
build: fix protobuf out-of-tree build
Otherwise it aborts with "File does not reside within any path specified using --proto_path (or -I)" Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'grpc')
-rw-r--r--grpc/subdir.am6
1 files changed, 3 insertions, 3 deletions
diff --git a/grpc/subdir.am b/grpc/subdir.am
index 045848aee7..d9ec365ba8 100644
--- a/grpc/subdir.am
+++ b/grpc/subdir.am
@@ -23,12 +23,12 @@ EXTRA_DIST += grpc/frr-northbound.proto
AM_V_PROTOC = $(am__v_PROTOC_$(V))
am__v_PROTOC_ = $(am__v_PROTOC_$(AM_DEFAULT_VERBOSITY))
-am__v_PROTOC_0 = @echo " PROTOC" $@;
+am__v_PROTOC_0 = @echo " PROTOC " $@;
am__v_PROTOC_1 =
SUFFIXES += .pb.h .pb.cc .grpc.pb.cc
.proto.pb.cc:
- $(AM_V_PROTOC)$(PROTOC) -I$(top_srcdir) --cpp_out=$(top_srcdir) $(top_srcdir)/$^
+ $(AM_V_PROTOC)$(PROTOC) -I$(top_srcdir) --cpp_out=$(top_builddir) $^
.proto.grpc.pb.cc:
- $(AM_V_PROTOC)$(PROTOC) -I$(top_srcdir) --grpc_out=$(top_srcdir) --plugin=protoc-gen-grpc=`which grpc_cpp_plugin` $(top_srcdir)/$^
+ $(AM_V_PROTOC)$(PROTOC) -I$(top_srcdir) --grpc_out=$(top_builddir) --plugin=protoc-gen-grpc=`which grpc_cpp_plugin` $^