Skip to content

Commit

Permalink
Do not include system paths when finding generator script
Browse files Browse the repository at this point in the history
Similar to searching for the local protoc, we should use the local
nanopb_generator.py script.

Signed-off-by: Pieter De Gendt <[email protected]>
  • Loading branch information
pdgendt authored and PetteriAimonen committed May 29, 2024
1 parent ae4959e commit 4474bd3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions extra/FindNanopb.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ find_path(NANOPB_GENERATOR_SOURCE_DIR
DOC "nanopb generator source"
PATHS
${NANOPB_SRC_ROOT_FOLDER}/generator
NO_DEFAULT_PATH
NO_CMAKE_FIND_ROOT_PATH
)
mark_as_advanced(NANOPB_GENERATOR_SOURCE_DIR)
Expand Down

0 comments on commit 4474bd3

Please sign in to comment.