Build tools don’t provide such functionality generally, so CMake can’t provide any such guarantees. One could maybe hook it up with GNU make, but I don’t know if that’s possible.
The solution is to either use file(GLOB CONFIGURE_DEPENDS)
, but I recommend against file(GLOB)
for source listing in that situation as well.