aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmake/external/nanopb.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/external/nanopb.cmake')
-rw-r--r--cmake/external/nanopb.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/external/nanopb.cmake b/cmake/external/nanopb.cmake
index b5c74ce..7f1df78 100644
--- a/cmake/external/nanopb.cmake
+++ b/cmake/external/nanopb.cmake
@@ -13,6 +13,11 @@
# limitations under the License.
include(ExternalProject)
+include(external/protobuf)
+
+if(TARGET nanopb)
+ return()
+endif()
set(NANOPB_PROTOC_BIN ${FIREBASE_INSTALL_DIR}/bin/protoc)