How to forward a CMake cache variable when using sysbuild
?
#79869
Unanswered
TorstenRobitzki
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hey Torsten, There's an undocumented feature for this purpose, called zephyr_get(). The source tree is littered with it but as of yet no documentation has been written for it. In your application
...and you're in business. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I try to use
sysbuild
to build a firmware for nrf5340. I need a CMake cache variable in theCMakeLists.txt
in my application (to emulate multiple build targets).I use
CMake
to create the build system and want to haveCACHE_VAR
to be set toValue
with inCMakeLists.txt
Does not work (variable not set in
CMakeLists.txt
). According to the documentation, I thought, changing the variable name to eitherapp_CACHE_VAR
orAPP_CACHE_VAR
should do the trick, but unfortunately that's not the case.How to forward a CMake cache variable when using
sysbuild
?Beta Was this translation helpful? Give feedback.
All reactions