Skip to content

Commit 652b421

Browse files
committed
CMake: unit-tests: Make events stub only depend on headers it uses
Previously the events 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.
1 parent 447754f commit 652b421

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

events/tests/UNITTESTS/doubles/CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ target_include_directories(mbed-stubs-events
3030

3131
target_link_libraries(mbed-stubs-events
3232
PRIVATE
33-
mbed-headers
34-
mbed-stubs-headers
33+
mbed-headers-base
34+
mbed-headers-drivers
35+
mbed-headers-hal
36+
mbed-headers-events
37+
mbed-headers-rtos
38+
mbed-headers-platform
3539
)

0 commit comments

Comments
 (0)