Replies: 4 comments 3 replies
-
Why would changing the compile options of the app from a module do anything? You'd need to use the name of what you've configured the module as |
Beta Was this translation helpful? Give feedback.
-
@nordicjm we also try the name of the directory of the module instead of app, but it did not do anything. |
Beta Was this translation helpful? Give feedback.
-
Moving to a discussion as this is not a bug. A good starting example would be zcbor, the zcbor cmake files are stored internally in the zephyr tree here https://github.com/zephyrproject-rtos/zephyr/blob/main/modules/zcbor/CMakeLists.txt but are used by the zcbor module, you don't need to follow this part just the part of how files are added. If you add this line for example:
And try to build a zephyr application that includes zcbor, you will see it fails:
Thus, it works. |
Beta Was this translation helpful? Give feedback.
-
I found this discussion searching for my issue. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
** Problem **
When defining a custom/external module, we need some specific compilation options:
** Expected solution **
The solution we would like would be to get the current compilation options from one or multiple variable and be able to modify it from the CMakeLists.txt of the module
** Tests done **
We try the following alternatives without success:
like suggested in the following issues:
** Ideas **
We have seen that some modules include xxxx.cmake files in a cmake repository in the module directory.
We are wondering if this is the kind of approach we should take.
Beta Was this translation helpful? Give feedback.
All reactions