[Cmake] dependencies

Bill Hoffman bill.hoffman at kitware.com
Mon Nov 12 12:21:52 EST 2001


The ADD_DEPENDENCIES command is only used to add dependencies between one executable and another. Regular build dependencies are handled automatically.

If drawingimpl.cxx includes drawing.h the depend should be in cmake.depends.

-Bill




At 04:31 PM 11/12/2001 +0000, Franck Bettinger wrote:
>Hi,
>
>I tried to add a dependency that was not automatically generated by cmake in 
>a CMakeList.txt using the command:
>
>ADD_DEPENDENCIES(drawingimpl.cxx 
>${allvxl_SOURCE_DIR}/obj/programs/drawing/drawing.h)
>
>Apparently it doesn't change anything in the generated Makefile (at least on 
>linux). Anyone has any idea why it does this, or how can I add a user defined 
>dependency ?
>
>Cheers,
>Franck
>_______________________________________________
>Cmake mailing list
>Cmake at public.kitware.com
>http://public.kitware.com/mailman/listinfo/cmake 




More information about the CMake mailing list