Skip to content

Commit 728e183

Browse files
committedJul 2, 2021
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 8d7d173 commit 728e183

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
@@ -34,8 +34,12 @@ target_sources(mbed-stubs-lorawan
3434

3535
target_link_libraries(mbed-stubs-lorawan
3636
PRIVATE
37-
mbed-headers
38-
mbed-headers-lorawan
37+
mbed-headers-base
38+
mbed-headers-events
39+
mbed-headers-hal
3940
mbed-stubs-headers
41+
mbed-headers-connectivity
42+
mbed-headers-platform
43+
mbed-headers-lorawan
4044
gtest
4145
)

0 commit comments

Comments
 (0)