Skip to content

Commit 9cd9381

Browse files
committed
CMake: unit-tests: Make lorawan stub only depend on headers it uses
Previously the connectivity lorawan 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 8cc1cf9 commit 9cd9381

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,12 @@ target_sources(mbed-stubs-lorawan
4141

4242
target_link_libraries(mbed-stubs-lorawan
4343
PRIVATE
44-
mbed-headers
45-
mbed-headers-lorawan
44+
mbed-headers-base
45+
mbed-headers-events
46+
mbed-headers-hal
4647
mbed-stubs-headers
48+
mbed-headers-connectivity
49+
mbed-headers-platform
50+
mbed-headers-lorawan
4751
gtest
4852
)

0 commit comments

Comments
 (0)