We should always try to compile the protoc plugins when building tests.
diff --git a/Makefile b/Makefile
index 80e8d74..00ec442 100644
--- a/Makefile
+++ b/Makefile
@@ -748,8 +748,8 @@
endif
else
PC_LIBS_GRPCXX = -lprotobuf
-PROTOC_PLUGINS = $(PROTOC_PLUGINS_ALL)
endif
+PROTOC_PLUGINS = $(PROTOC_PLUGINS_ALL)
else
ifeq ($(HAS_EMBEDDED_PROTOBUF),true)
PROTOBUF_DEP = $(LIBDIR)/$(CONFIG)/protobuf/libprotobuf.a
diff --git a/templates/Makefile.template b/templates/Makefile.template
index cb33643..9afc656 100644
--- a/templates/Makefile.template
+++ b/templates/Makefile.template
@@ -642,8 +642,8 @@
endif
else
PC_LIBS_GRPCXX = -lprotobuf
- PROTOC_PLUGINS = $(PROTOC_PLUGINS_ALL)
endif
+ PROTOC_PLUGINS = $(PROTOC_PLUGINS_ALL)
else
ifeq ($(HAS_EMBEDDED_PROTOBUF),true)
PROTOBUF_DEP = $(LIBDIR)/$(CONFIG)/protobuf/libprotobuf.a