[CMake] Fix handling of passing through semi-colon separated lists.