Skip to content

Commit 423e8b0

Browse files
Fix functions using different names for linker script
1 parent a942b2e commit 423e8b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ function(mbed_set_mbed_target_linker_script target)
134134
if(MBED_TOOLCHAIN STREQUAL "GCC_ARM")
135135
set(CMAKE_PRE_BUILD_COMMAND
136136
COMMAND "arm-none-eabi-cpp" ${_linker_preprocess_definitions} -x assembler-with-cpp -E -Wp,-P
137-
${mbed_target_linker_script} -o ${CMAKE_BINARY_DIR}/${target}.link_script.ld
137+
${mbed_target_linker_script} -o ${CMAKE_BINARY_DIR}/${APP_NAME}.link_script.ld
138138

139139
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
140140
BYPRODUCTS "${CMAKE_BINARY_DIR}/${target}.link_script.ld"

0 commit comments

Comments
 (0)