From e88e1149e200ffed6d91dde9581196974ec451e0 Mon Sep 17 00:00:00 2001 From: Martin Kojtal Date: Tue, 9 Feb 2021 17:11:57 +0000 Subject: [PATCH] CMake: fix the comment for naming targets --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8366e416a7..634e8f2db7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -128,7 +128,8 @@ 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 cmake naming convention in targets, using lowercase with dashes +# 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 string(TOLOWER ${MBED_TARGET} MBED_TARGET_CONVERTED) string(REPLACE "_" "-" MBED_TARGET_CONVERTED ${MBED_TARGET_CONVERTED}) string(PREPEND MBED_TARGET_CONVERTED "mbed-")