Bug in `list(INSERT)`: list items with semicolons are split into multiple items
When running a list(INSERT)
, any existing list items with semicolons are split; in other words, given the list variable:
set(lst [[A;B\;C]])
when running a list(INSERT)
:
list(INSERT lst 0 "a")
The value of lst
becomes A;a;B;C
, as opposed to the correct answer, A;a;B\;C
.
(Note that other list
operations are correct here: list(APPEND)
, list(PREPEND)
both follow this rule)
The same is true for list(SUBLIST)
; the length is correctly calculated, but the result is incorrect:
list(SUBLIST lst 0 2 new_lst)
message(STATUS "${new_lst}") # -- A;B;C
Edited by nicole mazzuca