Skip to content

Commit 6a6bbe0

Browse files
committed
cmake: Use namespaced greentea client library
When using an exported or installed version of greentea, it's necessary to use the greentea namespace.
1 parent bfccaae commit 6a6bbe0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/cmake/mbed_greentea.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ macro(mbed_greentea_add_test)
6060
# -D "MBED_TEST_LINK_LIBRARIES=mbed-baremetal ext-errorlogging"
6161
if (DEFINED MBED_TEST_LINK_LIBRARIES)
6262
separate_arguments(MBED_TEST_LINK_LIBRARIES)
63-
list(APPEND MBED_GREENTEA_TEST_REQUIRED_LIBS ${MBED_TEST_LINK_LIBRARIES} greentea-client mbed-unity mbed-utest)
63+
list(APPEND MBED_GREENTEA_TEST_REQUIRED_LIBS ${MBED_TEST_LINK_LIBRARIES} greentea::client mbed-unity mbed-utest)
6464
else()
65-
list(APPEND MBED_GREENTEA_TEST_REQUIRED_LIBS greentea-client mbed-unity mbed-utest)
65+
list(APPEND MBED_GREENTEA_TEST_REQUIRED_LIBS greentea::client mbed-unity mbed-utest)
6666
endif()
6767

6868
target_link_libraries(${MBED_GREENTEA_TEST_NAME}

0 commit comments

Comments
 (0)