cmake: reducing unnecessary rebuilds

Alexander Neundorf neundorf at kde.org
Tue Mar 21 20:15:38 CET 2006


On Tuesday 21 March 2006 20:04, David Faure wrote:
> On Tuesday 21 March 2006 19:55, David Faure wrote:
> > > VERBOSE=1 make
> >
> > Works much better. Thanks!
>
> .. at least for .h changes triggering .o rebuilds.
> It doesn't tell anything about "libfoo.so has changed so I need to rebuild
> libbar.so and mybinary which depend on it".

With cmake the targets also depend on their rules. So if one of the rules 
change, it will have to rebuild. I don't know 100% how a changed rule is 
detected, probably if the build.make was written or something like this.

This can be disabled by setting CMAKE_SKIP_RULE_DEPENDENCY to TRUE.

Bye
Alex
-- 
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org                - http://www.kde.org
      alex AT neundorf.net               - http://www.neundorf.net


More information about the Kde-buildsystem mailing list