From 27bfa906c6b09520a06aebb317c148e57e9d1fc5 Mon Sep 17 00:00:00 2001 From: Rajkumar Kanagaraj Date: Thu, 15 Jul 2021 06:16:19 -0700 Subject: [PATCH] CMake: Limit cellular common unit tests to use mocks what it depends Update cellular common unit tests CMake depends on a mock, which is required for the test instead of depending on the group of mbed-headers libraries. --- .../tests/UNITTESTS/framework/common/list/CMakeLists.txt | 1 - .../tests/UNITTESTS/framework/common/util/CMakeLists.txt | 1 - 2 files changed, 2 deletions(-) diff --git a/connectivity/cellular/tests/UNITTESTS/framework/common/list/CMakeLists.txt b/connectivity/cellular/tests/UNITTESTS/framework/common/list/CMakeLists.txt index 59ee4cb238..ec135a522e 100644 --- a/connectivity/cellular/tests/UNITTESTS/framework/common/list/CMakeLists.txt +++ b/connectivity/cellular/tests/UNITTESTS/framework/common/list/CMakeLists.txt @@ -12,7 +12,6 @@ target_sources(${TEST_NAME} target_link_libraries(${TEST_NAME} PRIVATE - mbed-headers mbed-headers-cellular gmock_main ) diff --git a/connectivity/cellular/tests/UNITTESTS/framework/common/util/CMakeLists.txt b/connectivity/cellular/tests/UNITTESTS/framework/common/util/CMakeLists.txt index 21cbc64bb4..e243c5f932 100644 --- a/connectivity/cellular/tests/UNITTESTS/framework/common/util/CMakeLists.txt +++ b/connectivity/cellular/tests/UNITTESTS/framework/common/util/CMakeLists.txt @@ -13,7 +13,6 @@ target_sources(${TEST_NAME} target_link_libraries(${TEST_NAME} PRIVATE - mbed-headers mbed-headers-netsocket mbed-headers-cellular mbed-stubs-platform