Skip to content

Commit fe0298a

Browse files
committed
CMake: unit-tests: Make hal stubs only depend on headers it uses
Previously the hal 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 bf06897 commit fe0298a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hal/tests/UNITTESTS/doubles/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ target_link_options(mbed-stubs-hal
3232

3333
target_link_libraries(mbed-stubs-hal
3434
PRIVATE
35-
mbed-headers
35+
mbed-headers-base
36+
mbed-headers-hal
37+
mbed-headers-platform
3638
mbed-stubs-headers
3739
)

0 commit comments

Comments
 (0)