According to Modern CMake: Do's and Don'ts and Why is cmake file GLOB evil? CMake's file(GLOB)
should not be used to collect source files.
In our project environment, we have the guarantee that Ninja will be used as the build system. I also understand that CONFIGURE_DEPENDS
comes with a small performance drop at build time. I can live with that.
Is it possible to use file(GLOB CONFIGURE_DEPENDS "*.cpp")
with these constraints without problems or are there other points besides build system portability and performance that speak against GLOB
?