Skip to content

Commit

Permalink
CMake: unit-tests: Make hal stubs only depend on headers it uses
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rajkan01 committed Jun 24, 2021
1 parent 6a40313 commit 7f6f4b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hal/tests/UNITTESTS/doubles/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ target_link_options(mbed-stubs-hal

target_link_libraries(mbed-stubs-hal
PRIVATE
mbed-headers
mbed-headers-base
mbed-headers-hal
mbed-headers-platform
mbed-stubs-headers
)

0 comments on commit 7f6f4b4

Please sign in to comment.