[CMake] Automatic dependency scanner of CMake 2.4.7

Bill Hoffman bill.hoffman at kitware.com
Sun Nov 11 13:00:50 EST 2007


Andreas Pakulat wrote:
> On 11.11.07 11:11:29, Juan Sanchez wrote:
>> 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?
> 
> Indeed, I wonder why cmake doesn't use the -M options for cpp for
> this...
>
Not all compilers have this feature.  But a few extra depends usually 
don't hurt.

-Bill



More information about the CMake mailing list