Skip to content

Commit

Permalink
cmake: sort shield list and improve indent
Browse files Browse the repository at this point in the history
Currently, when usage.cmake is run, the shield list is in construction
order, making it difficult to locate the shield of interest. This sorts
the list upon display and also makes the display indent consistent.

Signed-off-by: Aleksandr Koltsoff <czr@iki.fi>
  • Loading branch information
majava3000 authored and jaizpuruzin committed Jul 17, 2023
1 parent 71af461 commit 0000010
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmake/usage/usage.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ dump_all_boards("" " ")
message("")
message("Supported Shields:")
message("")
foreach(shield ${SHIELD_LIST})
message(" ${shield}")
set(sorted_shield_list ${SHIELD_LIST})
list(SORT sorted_shield_list)
foreach(shield ${sorted_shield_list})
message(" ${shield}")
endforeach()
message("")
message("Build flags:")
Expand Down

0 comments on commit 0000010

Please sign in to comment.