FindNanopb.cmake: Add PROTOC_OPTIONS variable (#768)
diff --git a/extra/FindNanopb.cmake b/extra/FindNanopb.cmake
index a10d794..b2f1c2d 100644
--- a/extra/FindNanopb.cmake
+++ b/extra/FindNanopb.cmake
@@ -273,6 +273,7 @@
            -I${CMAKE_CURRENT_BINARY_DIR} ${_nanopb_include_path}
            --plugin=protoc-gen-nanopb=${NANOPB_GENERATOR_PLUGIN}
            ${NANOPB_OPT_STRING}
+           ${PROTOC_OPTIONS}
            ${ABS_FIL}
       DEPENDS ${ABS_FIL} ${GENERATOR_CORE_PYTHON_SRC}
            ${ABS_OPT_FIL} ${NANOPB_DEPENDS}