Skip to content

Commit a178bb8

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 2d8f8ad commit a178bb8

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
@@ -25,6 +25,8 @@ include(${MBED_ROOT}/tools/cmake/core.cmake)
2525
include(${MBED_ROOT}/tools/cmake/profile.cmake)
2626

2727
add_library(mbed-core OBJECT)
28+
# TODO CMAKE: Replace mbed-os by a new one that will include mbed-core and mbed-rtos
29+
add_library(mbed-os ALIAS mbed-core)
2830

2931
# Validate selected C library type
3032
# The C library type selected has to match the library that the target can support

0 commit comments

Comments
 (0)