All you need to know about CMake is that the highest upvoted answer to "how can I split a comma-separated string into a list in my CMakeLists" on StackOverflow is apparently "Replace your separator by a ;. I don't see any other way to do it."https://stackoverflow.com/questions/5272781/what-is-common-way-to-split-string-into-list-with-cmake …
Yeah but this seems like it's the actual answer though, from reading the CMake documentation. Or you can use a mess of regexp or a string replace on your separators...