Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnK1987 authored Nov 14, 2024
1 parent 59c10f5 commit 3c4c342
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,10 @@ target_link_libraries(${CMAKE_PROJECT_NAME} mbed-os)

### Set post build (necessary everytime)
mbed_set_post_build(${CMAKE_PROJECT_NAME})
#[[Or in case of custom linker script which should be placed like this
directory PROJECT_NAME/custom_targets/MBED_TARGET/MBED_TARGET.ld]]
#mbed_set_post_build(${CMAKE_PROJECT_NAME} ${CMAKE_SOURCE_DIR}/custom_targets/${MBED_TARGET}/${MBED_TARGET}.ld)

### Build finalize does necessary configuration for debug in most cases (necessary everytime)
#[[ Note: if you wish to use a custom linker script instead of the default Mbed one for
your target, you can do that with mbed_set_post_build(${CMAKE_PROJECT_NAME} path/to/linker_script.ld) ]]

### Call this last, after creating all targets. It writes out IDE configuration files
### so that you can run your targets in VS Code.
mbed_finalize_build()

0 comments on commit 3c4c342

Please sign in to comment.