CMake: fix the comment for naming targets

pull/14255/head
Martin Kojtal 2021-02-09 17:11:57 +00:00
parent 544e5b94c3
commit e88e1149e2
1 changed files with 2 additions and 1 deletions

View File

@ -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-")