# Add GLOBBING support to target\_sources?

**URL:** https://discourse.cmake.org/t/add-globbing-support-to-target-sources/3749
**Category:** Development
**Created:** [July 13, 2021, 10:17pm UTC](https://discourse.cmake.org/t/add-globbing-support-to-target-sources/3749 "2021-07-13T22:17:47Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [July 13, 2021, 10:50pm UTC](https://discourse.cmake.org/t/add-globbing-support-to-target-sources/3749/2 "2021-07-13T22:50:36Z")

</div>

I wouldn’t call that “safe globbing” myself. Personally, I find globbing to always be a poorer alternative to explicit source listings. See [this post](https://discourse.cmake.org/t/is-glob-still-considered-harmful-with-configure-depends/808/2) for some details. I don’t think this is something I’d like to see CMake implement (IMO, `file(GLOB CONFIGURE_DEPENDS)` should go away too, but all I can do is not recommend it at this point), but I won’t stop anyone from implementing it; just trying to use it in codebases I maintain.

---

_[View the full topic](https://discourse.cmake.org/t/add-globbing-support-to-target-sources/3749)._
