From ca1fa9f3c1a7c9348816b69a66e66f4ebc20ae18 Mon Sep 17 00:00:00 2001 From: Martin Kojtal Date: Mon, 1 Mar 2021 11:24:33 +0000 Subject: [PATCH] CMake: add comments for the magic we do around core/rtos libraries --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2e38efd07f..c26a88ee19 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -164,6 +164,8 @@ target_compile_definitions(mbed-core INTERFACE $) +# 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})