[CMake] Automatic dependency scanner of CMake 2.4.7

Juan Sanchez Juan.Sanchez at amd.com
Sun Nov 11 12:11:29 EST 2007


According to the FAQ:
http://www.cmake.org/Wiki/CMake_FAQ#CMake_dependency_scanner

"#if 0" shouldn't work either.

How was the programming bad?  Both /* */ comments and conditional
statements are handled equally well by the c pre processor.

Since each C/C++ compiler has a cpp, wouldn't it be good to adopt the
dependency scanner to use cpp underneath?

Thanks,

Juan

Hendrik Sattler wrote:
> 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
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
> 
> 


-- 
Juan Sanchez
Juan.Sanchez at amd.com
800-538-8450 Ext. 54395
512-602-4395




More information about the CMake mailing list