When file(GLOB ...) is called, CMake applies regex to all files it can find. The question is whether it's done only on first cmake invocation, or every time?
In other words, does use of file(GLOB ...) slows down Makefiles regenration process? The same question can be applied to file(GLOB_RECURSE ...).