[CMake] Simple example of IMPILICIT_DEPENDS?

Michael Wild themiwi at gmail.com
Mon Nov 16 11:33:36 EST 2009


On 16. Nov, 2009, at 16:43 , lists_ravi at lavabit.com wrote:

> Hello,
>  Does anyone have a reasonably simple example of using  
> add_custom_command
> with IMPLICIT_DEPENDS that invokes the CXX scanner? The two examples I
> found via Google do not lead themselves to easy simplification.
>  My goal is to run a custom command that takes as arguments some
> explicitly named .h and .cpp files; the custom command needs to be  
> rerun
> every time when one of the named files or any of their dependencies
> change. It appears that IMPLICT_DEPENDS was created to solve exactly
> this problem, but I haven't been able to make this work:
>  http://www.cmake.org/pipermail/cmake/2009-November/033218.html
>
> Are there any unit tests for CMake that test that IMPLICIT_DEPENDS  
> works
> correctly with the CXX scanner?
>
> Regards,
> Ravi
>

There is a unit test: http://public.kitware.com/cgi-bin/viewcvs.cgi/Tests/BuildDepends/?root=CMake

HTH

Michael



More information about the CMake mailing list