From 7fe1d29ab430050e8d8a3b9dcf799fd087bf42b5 Mon Sep 17 00:00:00 2001 From: Li Cao Date: Thu, 30 Jul 2020 02:24:57 +0800 Subject: [PATCH] [cmake] fix link issues of unit tests (#5309) I think openthread-ncp-ftd is added to unit tests' link libraries by mistake. It's not required and as it depends on OT_PLATFORM, it would cause openthread-simulation linked in unit test executables, which would lead to a redefinition as some methods are defined in test-platform.cpp. --- tests/unit/CMakeLists.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/unit/CMakeLists.txt b/tests/unit/CMakeLists.txt index d10f0aefc..ebaf1ca11 100644 --- a/tests/unit/CMakeLists.txt +++ b/tests/unit/CMakeLists.txt @@ -33,7 +33,6 @@ set(COMMON_SOURCES set(COMMON_LIBS openthread-ftd - openthread-ncp-ftd ot-config ${OT_MBEDTLS} util