-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Labels
bugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bugpriority: lowLow impact/importance bugLow impact/importance bug
Description
Describe the bug
The documentation describes how to use nanopb:
https://docs.zephyrproject.org/latest/services/serialization/nanopb.html
This works fine as long as it is used in the main CMakeLists.txt. If the same procedure is used in an external module the build fails with
CMake Error at C:/Users/KleiserS/Desktop/test/example/deps/modules/lib/nanopb/extra/FindNanopb.cmake:407 (target_compile_features):
target_compile_features no known features for C compiler
"GNU"
version 12.2.0.
This happend in general before in #70516, was reverted and fixed later in #70658. I am not sure if it is fixed completely, because my module depending on nanopb fails now.
Commit 6b27cb2 is the last one working.
To Reproduce
I have prepared an example project. Steps to reproduce this behavior:
- git clone https://github.com/sageve/nanopb-example
- cd nanopb-example
- west init -l
- west update
- west build -b qemu_cortex_a9 or any other board
Expected behavior
The build should not fail. In case I am misusing nanopb, it should be documented how to use it in modules.
Metadata
Metadata
Assignees
Labels
bugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bugpriority: lowLow impact/importance bugLow impact/importance bug