CMake: Refactor target MCU_STM32F103xE library name

pull/14380/head
Harrison Mutai 2021-03-04 15:37:47 +00:00
parent 76b2902f48
commit da73b4bf8d
1 changed files with 5 additions and 5 deletions

View File

@ -9,19 +9,19 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(LINKER_FILE TOOLCHAIN_ARM/stm32f103xe.sct) set(LINKER_FILE TOOLCHAIN_ARM/stm32f103xe.sct)
endif() endif()
add_library(STM32F103xE INTERFACE) add_library(mbed-stm32f103xe INTERFACE)
target_sources(STM32F103xE target_sources(mbed-stm32f103xe
INTERFACE INTERFACE
system_clock.c system_clock.c
${STARTUP_FILE} ${STARTUP_FILE}
) )
target_include_directories(STM32F103xE target_include_directories(mbed-stm32f103xe
INTERFACE INTERFACE
. .
) )
mbed_set_linker_script(STM32F103xE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE}) mbed_set_linker_script(mbed-stm32f103xe ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_link_libraries(STM32F103xE INTERFACE STM32F1) target_link_libraries(mbed-stm32f103xe INTERFACE mbed-stm32f1)