[Cmake] depend changes in makefile generators(unix,nmake,borland)
William A. Hoffman
bill.hoffman at kitware.com
Sat Dec 29 19:35:42 EST 2001
We have come up with a less brute force approach to this problem.
Each depend and source file now has a rule that can run make depend. This
means
that the depends should always be up-to-date now.
-Bill
At 09:01 AM 12/21/2001 -0500, Bill Hoffman wrote:
>In an effort to avoid errors where make fails because depends are stale,
>we have taken
>a bit of a brute force approach to fixing the problem.
>
>If a Makefile needs to be regenerated for any reason. (a source cmakelist
>file or the cache has changed).
>If you run make, the first thing it will do is cd to the top of your
>project and run make depend.
>
>The problem is this:
>
>DirA/Afile.cxx
>DirB/Bfile.cxx // includes Afile.h
>
>
>If I change the list file in DirA, and remove Afile.[cxx|h] from the build,
>DirB will have re-run make depend, or the make will fail because it will
>have a depend
>to Afile.h that no longer exists.
>
>-Bill
>
>_______________________________________________
>Cmake mailing list
>Cmake at public.kitware.com
>http://public.kitware.com/mailman/listinfo/cmake
More information about the CMake
mailing list