mirror of https://github.com/ARMmbed/mbed-os.git
Fix functions using different names for linker script
parent
a942b2e21b
commit
423e8b0324
|
@ -134,7 +134,7 @@ function(mbed_set_mbed_target_linker_script target)
|
||||||
if(MBED_TOOLCHAIN STREQUAL "GCC_ARM")
|
if(MBED_TOOLCHAIN STREQUAL "GCC_ARM")
|
||||||
set(CMAKE_PRE_BUILD_COMMAND
|
set(CMAKE_PRE_BUILD_COMMAND
|
||||||
COMMAND "arm-none-eabi-cpp" ${_linker_preprocess_definitions} -x assembler-with-cpp -E -Wp,-P
|
COMMAND "arm-none-eabi-cpp" ${_linker_preprocess_definitions} -x assembler-with-cpp -E -Wp,-P
|
||||||
${mbed_target_linker_script} -o ${CMAKE_BINARY_DIR}/${target}.link_script.ld
|
${mbed_target_linker_script} -o ${CMAKE_BINARY_DIR}/${APP_NAME}.link_script.ld
|
||||||
|
|
||||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
BYPRODUCTS "${CMAKE_BINARY_DIR}/${target}.link_script.ld"
|
BYPRODUCTS "${CMAKE_BINARY_DIR}/${target}.link_script.ld"
|
||||||
|
|
Loading…
Reference in New Issue