From 9f164a068610802cb8423eba503d07b6f559bbb3 Mon Sep 17 00:00:00 2001 From: JohnK1987 Date: Wed, 23 Oct 2024 22:26:25 +0200 Subject: [PATCH] Update CMakeLists.txt Corectrion of post_build position --- CMakeLists.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0228fe1..ead3b80 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 @@ -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()