From e01a4c9f1aee73ec285900672352f2ac8fd8acd2 Mon Sep 17 00:00:00 2001 From: Matt Woodward Date: Sun, 5 Jul 2020 13:42:16 +1000 Subject: [PATCH 1/2] Find nanopb --- FindNanopb.cmake | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 FindNanopb.cmake diff --git a/FindNanopb.cmake b/FindNanopb.cmake new file mode 100644 index 0000000..c0cf813 --- /dev/null +++ b/FindNanopb.cmake @@ -0,0 +1,7 @@ +include("GenericFindDependency") +GenericFindDependency( + TARGET protobuf-nanopb + SOURCE_DIR "third_party/nanopb" + SYSTEM_INCLUDES + ) + From ffe9efe0ea831dcb2f9f2e7c65767e3b17c60fc8 Mon Sep 17 00:00:00 2001 From: Matt Woodward Date: Sun, 5 Jul 2020 18:39:56 +1000 Subject: [PATCH 2/2] don't build generator --- FindNanopb.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/FindNanopb.cmake b/FindNanopb.cmake index c0cf813..d036384 100644 --- a/FindNanopb.cmake +++ b/FindNanopb.cmake @@ -1,4 +1,5 @@ include("GenericFindDependency") +option(nanopb_BUILD_GENERATOR "" OFF) GenericFindDependency( TARGET protobuf-nanopb SOURCE_DIR "third_party/nanopb"