Proposal: Use `message` command to output lists
It quite often occurs a necessity to output some list e.g., list of found components, list of some paths, etc. Nowadays it can be done w/ a boilerplate code using foreach
.
I propose to modify message
to update signature like this:
message(<TYPE> [ITEMIZE] ...)
I.e. if ITEMIZE
given the followed arguments considered as items to output one on each line:
message(STATUS ITEMIZE one two three)
Result in the following output:
-- one
-- two
-- three
The "normal" behaviour still the same:
message(STATUS one two three)
-- onetwothree
Topics to Discuss
- Is it have any sense to "itemize" error/warnings? (IMO, no)