Skip to content

Commit 7acd11f

Browse files
committed
CMake: unit-tests: Make cellular stub only depend on headers it uses
Previously the connectivity cellular 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 4a1edc5 commit 7acd11f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

connectivity/cellular/tests/UNITTESTS/doubles/CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,13 @@ target_sources(mbed-stubs-cellular
4444

4545
target_link_libraries(mbed-stubs-cellular
4646
PRIVATE
47-
mbed-headers
47+
mbed-headers-base
48+
mbed-headers-connectivity
49+
mbed-headers-platform
50+
mbed-headers-rtos
51+
mbed-headers-drivers
52+
mbed-headers-hal
53+
mbed-headers-events
4854
mbed-headers-cellular
4955
mbed-stubs-headers
5056
gtest

0 commit comments

Comments
 (0)