FWIW, I would push back pretty hard against a proposal to add globbing to target_sources(). I’m in agreement with Ben and Marc, I really wouldn’t recommend projects use a globbing-based strategy. The reasons are well-documented by now and for those who still want to use globbing despite this, the tools are already there with file(GLOB) and file(GLOB_RECURSE). We want the commands to help people follow good practices, and I think the proposal mentioned here and similar suggestions around the topic are not consistent with that.
1 Like