Replies: 4 comments 1 reply
-
I had same feeling, but it seems CMake does this correctly.
BR, Jan |
Beta Was this translation helpful? Give feedback.
-
mbed_app.json is processed by this CMake script. It watches the json files for changes, and then reruns the Mbed Tools package to generate the configuration whenever the json file is modified. When you modify mbed_app.json, then rerun CMake, it should notice the changes and reconfigure (the previous modification time is stored as a CMake cache variable. I have seen this work in the past, if it didn't for you, that's a bug. If you want to manually trigger the configuration, that's easy. You just have to delete the |
Beta Was this translation helpful? Give feedback.
-
Yes, that does have an effect on CMake. It alters the |
Beta Was this translation helpful? Give feedback.
-
selecting a variant works to get modifications in mbed_app.json, thanks for hints. I've found this about adding depencies to rerun cmake, would that work with the VSCode extension? Where should it be placed? function(watch)
set_property(
DIRECTORY
APPEND
PROPERTY CMAKE_CONFIGURE_DEPENDS ${ARGV}
)
endfunction() https://www.reddit.com/r/cmake/comments/iokem9/force_cmake_rerun_when_file_changes/ |
Beta Was this translation helpful? Give feedback.
-
When is mbed_app.json processed? I have a project and added
"target.printf_lib": "std",
, but the change was not not detected, also not when I selected a variant again to trigger a new cmake configuration.I had to delete the build dir and recompile everything again. Is there some other way to trigger this configuration step?
Which parts are compatible with mbed-os build system? Does this have an effect on the build:
"device_has_remove": ["SLEEP"]
?Beta Was this translation helpful? Give feedback.
All reactions