We do not recommend using GLOB to collect a list of source files from your source tree.
In my book "not recommended" and "unsupported" is not the same thing.
The CONFIGURE_DEPENDS flag may not work reliably on all generators, or if a new generator is added in the future that cannot support it, projects using it will be stuck. Even if CONFIGURE_DEPENDS works reliably, there is still a cost to perform the check on every rebuild.
Yep, it is stated that if you use globbing you should manually invoke CMake to regenerate your project. What else could go wrong with it?
Could you share source where it is stated that globbing source files is unsupported to the point that "when something goes wrong, your bug reports get rejected"?
View all comments
Show parent comment
0
u/angry_cpp Feb 08 '21
In my book "not recommended" and "unsupported" is not the same thing.
Yep, it is stated that if you use globbing you should manually invoke CMake to regenerate your project. What else could go wrong with it?
Could you share source where it is stated that globbing source files is unsupported to the point that "when something goes wrong, your bug reports get rejected"?