Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
Corectrion of post_build position
  • Loading branch information
JohnK1987 authored Oct 23, 2024
1 parent 2b33609 commit c17c869
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,6 @@ project(mbed-ce-custom-targets)
### add executable (necessary everytime)
add_executable(${CMAKE_PROJECT_NAME} main.cpp)

### 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)

######################################################################################################
### Link libraries block
#[[For more about this configuraion visit wiki page MbedOS-configuration
Expand All @@ -75,5 +69,11 @@ target_link_libraries(${CMAKE_PROJECT_NAME} mbed-os)
### End of block
######################################################################################################

### 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)
mbed_finalize_build()

0 comments on commit c17c869

Please sign in to comment.