From 4536a5efe558cec75ab8f0d9b85061ea66f8bab0 Mon Sep 17 00:00:00 2001 From: Martin Kojtal Date: Wed, 10 Feb 2021 08:46:25 +0000 Subject: [PATCH] Update CMakeLists.txt Co-authored-by: Hugues Kamba <41612201+hugueskamba@users.noreply.github.com> --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 634e8f2db7..b65aa03e89 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -128,8 +128,7 @@ add_subdirectory(cmsis/device/rtos EXCLUDE_FROM_ALL) # preventing CMake from working its usage requirements magic and forcing us to set the linker # script globally. # -# Keep our CMake naming in targets as well: using lowercase with dashes + prefixed with mbed- -# Tools can keep targets.json naming, we translate here for linking +# Ensure the words that make up the Mbed target name are separated with an hyphen, lowercase, and with the `mbed-` prefix. string(TOLOWER ${MBED_TARGET} MBED_TARGET_CONVERTED) string(REPLACE "_" "-" MBED_TARGET_CONVERTED ${MBED_TARGET_CONVERTED}) string(PREPEND MBED_TARGET_CONVERTED "mbed-")