Skip to content

Commit 2bab2ba

Browse files
committed
CMake: Create a mbed-os alias library
This ensures that applications which link with the mbed-os CMake target still work. We want applications that require the OS to use the mbed-os CMake target as we will be creating a new one that will include mbed-core and mbed-rtos.
1 parent bf84a5b commit 2bab2ba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ include(${MBED_ROOT}/tools/cmake/core.cmake)
1414
include(${MBED_ROOT}/tools/cmake/profile.cmake)
1515

1616
add_library(mbed-core OBJECT)
17+
# TODO CMAKE: Replace mbed-os by a new one that will include mbed-core and mbed-rtos
18+
add_library(mbed-os ALIAS mbed-core)
1719

1820
# Validate selected C library type
1921
# The C library type selected has to match the library that the target can support

0 commit comments

Comments
 (0)