# CMake doesn't register new files when I add new files

**URL:** https://discourse.cmake.org/t/cmake-doesnt-register-new-files-when-i-add-new-files/13390
**Category:** Usage
**Created:** [January 13, 2025, 3:33pm UTC](https://discourse.cmake.org/t/cmake-doesnt-register-new-files-when-i-add-new-files/13390 "2025-01-13T15:33:06Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![fenrir](https://discourse.cmake.org/user_avatar/discourse.cmake.org/fenrir/32/734_2.png) [@fenrir](https://discourse.cmake.org/u/fenrir)
#### Post date: [January 14, 2025, 9:39am UTC](https://discourse.cmake.org/t/cmake-doesnt-register-new-files-when-i-add-new-files/13390/5 "2025-01-14T09:39:43Z")

</div>

This is exactly why CMake does not not see your new files. With globbing it builds the list of files when the configuration step is run, and this step is only run if the CMake files themselves change.  
This is exactly the behaviour that sometimes bites hard.

---

_[View the full topic](https://discourse.cmake.org/t/cmake-doesnt-register-new-files-when-i-add-new-files/13390)._
