Skip to content

Commit 9a209c4

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 d37968a commit 9a209c4

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
@@ -43,7 +43,13 @@ target_sources(mbed-stubs-cellular
4343

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

0 commit comments

Comments
 (0)