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.
pull/13566/head
Hugues Kamba 2020-10-22 17:17:36 +01:00
parent bf84a5b329
commit 2bab2ba038
1 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,8 @@ include(${MBED_ROOT}/tools/cmake/core.cmake)
include(${MBED_ROOT}/tools/cmake/profile.cmake)
add_library(mbed-core OBJECT)
# TODO CMAKE: Replace mbed-os by a new one that will include mbed-core and mbed-rtos
add_library(mbed-os ALIAS mbed-core)
# Validate selected C library type
# The C library type selected has to match the library that the target can support