[CMake] CMake minimum required version
Russell Wallace
russell.wallace at gmail.com
Sat Aug 25 13:38:17 EDT 2012
On Sat, Aug 25, 2012 at 12:41 PM, Rolf Eike Beer <eike at sf-mail.de> wrote:
> That sounds suspicious. From the documentation (cmake --help-command file):
>
> We do not recommend using GLOB to
> collect a list of source files from your source tree. If no
> CMakeLists.txt file changes when a source is added or removed then the
> generated build system cannot know when to ask CMake to regenerate.
Of course it can't, I wasn't expecting it to. That's not a reason to
violate DRY keeping the two lists in sync by hand! All you need to do
is issue a single command to scrub the build directory and re-create
it. Not only is that strictly less work, more importantly, it's
strictly less error-prone.
More information about the CMake
mailing list