CMake: unit-tests: Make hal stubs only depend on headers it uses

Previously the hal stub library depended on `mbed-headers`, which
is a collection of all available headers in mbed-os. To make it easier
to separate the library, only depend on the headers we're using.
pull/14827/head
Rajkumar Kanagaraj 2021-06-24 03:53:02 -07:00
parent bf06897b8f
commit fe0298a1a3
1 changed files with 3 additions and 1 deletions

View File

@ -32,6 +32,8 @@ target_link_options(mbed-stubs-hal
target_link_libraries(mbed-stubs-hal
PRIVATE
mbed-headers
mbed-headers-base
mbed-headers-hal
mbed-headers-platform
mbed-stubs-headers
)