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 c9507a9 commit 9f164a0
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 @@ -58,12 +58,6 @@ project(MbedCEHelloWorld)
### 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 @@ -78,5 +72,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 9f164a0

Please sign in to comment.