list(REMOVE_DUPLICATES) concatenates list of lists
Code:
list(APPEND listOfLists a\\ b)
list(APPEND listOfLists c\\ d)
list(APPEND listOfLists c\\ d)
message("before: ${listOfLists}")
list(REMOVE_DUPLICATES listOfLists)
message("after: ${listOfLists}")
Will output:
before: a\;b;c\;d;c\;d
after: a;b;c;d
I would expect the output to be:
before: a\;b;c\;d;c\;d
after: a\;b;c\;d
As you can see the list(REMOVE_DUPLICATES) concatenates those lists (removes \). I am not sure if this is a bug of feature, but it is not documented as far as I know.
Here is the CMakeLists.txt