[CMake] Automatic dependency scanner of CMake 2.4.7

Hendrik Sattler post at hendrik-sattler.de
Sun Nov 11 07:56:52 EST 2007


Am Sonntag 11 November 2007 schrieb groton at gmx.net:
> I am using CMake version 2.4-patch 7 on Linux/Debian, and I noticed that
> a the automatic dependency scanner of CMake does add a dependency on the
> file bar.cpp upon the file foo.h when it encounters a the following
> commented out preprocessor command inside the bar.cpp file:
>
> /*
> #include "foo.h"
> */

The dependency scanner in cmake is not very exact but better more then less.
Your programming isn't good either. Did you try the following?
#if 0
#include "foo.h"
#endif

HS


More information about the CMake mailing list