Skip to content

Commit ef5c86f

Browse files
committed
CMake: unit-tests: Make events UNITTESTS only depend on headers it uses
Previously the events unit tests 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 cecc47b commit ef5c86f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

events/tests/UNITTESTS/equeue/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ target_sources(${TEST_NAME}
2323

2424
target_link_libraries(${TEST_NAME}
2525
PRIVATE
26-
mbed-headers
26+
mbed-headers-base
27+
mbed-headers-platform
28+
mbed-headers-events
2729
mbed-stubs-events
2830
mbed-stubs-platform
2931
gmock_main

0 commit comments

Comments
 (0)