Source_group does not support generator expression

I’m trying to set up a tree in visual studio using source_group. But i have some files that are exclusive to the windows build that are excluded through generator expression. However, when passing sourcefiles to gource_group, source_group fails to parse the generator expression during configuration. Is there a workaround for this? and if not, shouldn’t this be a feature of cmake?

This issue seems to be the one you’re looking for.