CMake: add comments for the magic we do around core/rtos libraries

pull/14427/head
Martin Kojtal 2021-03-01 11:24:33 +00:00
parent a20c531fb1
commit ca1fa9f3c1
1 changed files with 2 additions and 0 deletions

View File

@ -164,6 +164,8 @@ target_compile_definitions(mbed-core INTERFACE $<TARGET_PROPERTY:${MBED_TARGET_C
# Add target sources - these depend on mbed-core thus they are copied and compiled as part of mbed-core object library
target_sources(mbed-core-obj PRIVATE $<TARGET_PROPERTY:${MBED_TARGET_CONVERTED},INTERFACE_SOURCES>)
# Copy all core objects to Mbed OS as they share flags (build as one)
# This is a workaround in the tree dependencies between core/rtos. We can fix this one we have old tools removed
get_property(MBED_CORE_SOURCES TARGET mbed-core-obj PROPERTY SOURCES)
target_sources(mbed-os-obj PRIVATE ${MBED_CORE_SOURCES})