Skip to content

Commit e88e114

Browse files
committed
CMake: fix the comment for naming targets
1 parent 544e5b9 commit e88e114

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ add_subdirectory(cmsis/device/rtos EXCLUDE_FROM_ALL)
128128
# preventing CMake from working its usage requirements magic and forcing us to set the linker
129129
# script globally.
130130
#
131-
# keep cmake naming convention in targets, using lowercase with dashes
131+
# Keep our CMake naming in targets as well: using lowercase with dashes + prefixed with mbed-
132+
# Tools can keep targets.json naming, we translate here for linking
132133
string(TOLOWER ${MBED_TARGET} MBED_TARGET_CONVERTED)
133134
string(REPLACE "_" "-" MBED_TARGET_CONVERTED ${MBED_TARGET_CONVERTED})
134135
string(PREPEND MBED_TARGET_CONVERTED "mbed-")

0 commit comments

Comments
 (0)