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 [EMAIL PROTECTED]: >> 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@cmake.org > http://www.cmake.org/mailman/listinfo/cmake > > -- Juan Sanchez [EMAIL PROTECTED] 800-538-8450 Ext. 54395 512-602-4395 _______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake