Skip to content

Commit 9f164a0

Browse files
authored
Update CMakeLists.txt
Corectrion of post_build position
1 parent c9507a9 commit 9f164a0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

CMakeLists.txt

+6-6
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,6 @@ project(MbedCEHelloWorld)
5858
### add executable (necessary everytime)
5959
add_executable(${CMAKE_PROJECT_NAME} main.cpp)
6060

61-
### Set post build (necessary everytime)
62-
mbed_set_post_build(${CMAKE_PROJECT_NAME})
63-
#[[Or in case of custom linker script which should be placed like this
64-
directory PROJECT_NAME/custom_targets/MBED_TARGET/MBED_TARGET.ld]]
65-
#mbed_set_post_build(${CMAKE_PROJECT_NAME} ${CMAKE_SOURCE_DIR}/custom_targets/${MBED_TARGET}/${MBED_TARGET}.ld)
66-
6761
######################################################################################################
6862
### Link libraries block
6963
#[[For more about this configuraion visit wiki page MbedOS-configuration
@@ -78,5 +72,11 @@ target_link_libraries(${CMAKE_PROJECT_NAME} mbed-os)
7872
### End of block
7973
######################################################################################################
8074

75+
### Set post build (necessary everytime)
76+
mbed_set_post_build(${CMAKE_PROJECT_NAME})
77+
#[[Or in case of custom linker script which should be placed like this
78+
directory PROJECT_NAME/custom_targets/MBED_TARGET/MBED_TARGET.ld]]
79+
#mbed_set_post_build(${CMAKE_PROJECT_NAME} ${CMAKE_SOURCE_DIR}/custom_targets/${MBED_TARGET}/${MBED_TARGET}.ld)
80+
8181
### Build finalize does necessary configuration for debug in most cases (necessary everytime)
8282
mbed_finalize_build()

0 commit comments

Comments
 (0)