aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmake/FindNanopb.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/FindNanopb.cmake')
-rw-r--r--cmake/FindNanopb.cmake8
1 files changed, 3 insertions, 5 deletions
diff --git a/cmake/FindNanopb.cmake b/cmake/FindNanopb.cmake
index 131be2a..e7a94bb 100644
--- a/cmake/FindNanopb.cmake
+++ b/cmake/FindNanopb.cmake
@@ -14,8 +14,6 @@
include(FindPackageHandleStandardArgs)
-set(BINARY_DIR ${FIREBASE_BINARY_DIR}/external/nanopb)
-
find_path(
NANOPB_INCLUDE_DIR pb.h
)
@@ -35,10 +33,10 @@ find_package_handle_standard_args(
if(NANOPB_FOUND)
set(NANOPB_INCLUDE_DIRS ${NANOPB_INCLUDE_DIR})
- if (NOT TARGET nanopb)
- add_library(nanopb UNKNOWN IMPORTED)
+ if (NOT TARGET protobuf-nanopb)
+ add_library(protobuf-nanopb UNKNOWN IMPORTED)
set_target_properties(
- nanopb PROPERTIES
+ protobuf-nanopb PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES ${NANOPB_INCLUDE_DIRS}
IMPORTED_LOCATION ${NANOPB_LIBRARY}
)