diff options
author | Ledion Daja <ledion.daja@arm.com> | 2022-12-13 13:09:14 +0100 |
---|---|---|
committer | Kristofer Jonsson <kristofer.jonsson@arm.com> | 2022-12-14 12:14:07 +0000 |
commit | 18b3d03a3bfa3621c61495728766784a049f2f39 (patch) | |
tree | 496f7b479e1f9f7f7a5c1b0ea3533d6a48694bed /applications | |
parent | 213f3ce922c8cdf6fc884d57a6769c7e0fbff26f (diff) | |
download | ethos-u-core-platform-18b3d03a3bfa3621c61495728766784a049f2f39.tar.gz |
Remove duplicate linking of message handler test apps to mhu_dummy lib
Change-Id: I9846dfdd0c6a87812662980488d7ffc22107a119
Diffstat (limited to 'applications')
-rw-r--r-- | applications/message_handler/test/CMakeLists.txt | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/applications/message_handler/test/CMakeLists.txt b/applications/message_handler/test/CMakeLists.txt index 85976ba..3334ff2 100644 --- a/applications/message_handler/test/CMakeLists.txt +++ b/applications/message_handler/test/CMakeLists.txt @@ -32,12 +32,17 @@ function(ethosu_add_message_handler_test testname) get_filename_component(modelname ${model} NAME) ethosu_add_executable_test(mh_${testname}_${modelname} SOURCES - ${testname}.cpp - message_client.cpp + ${testname}.cpp + message_client.cpp LIBRARIES - message_handler_lib - freertos_kernel - ethosu_mhu_dummy) + message_handler_lib + freertos_kernel) + + get_target_property(INTERFACE_LINK_LIBRARIES ethosu_target_startup INTERFACE_LINK_LIBRARIES) + if (NOT ethosu_mhu_dummy IN_LIST INTERFACE_LINK_LIBRARIES) + target_link_libraries(mh_${testname}_${modelname} PRIVATE ethosu_mhu_dummy) + endif() + target_include_directories(mh_${testname}_${modelname} PRIVATE ../indexed_networks |