Sunday, January 04, 2009

Quickie: Faster compilation with cmake

It happens again and again that developers complain about cmake being too slow when compiling after a quick change. The solution is to use
  • make $target/fast
  • make install/fast
This way, cmake skips the dependency checking. As example, whenever I change code in kdelibs/kate, I type make katepart/fast and make install/fast.

1 comment:

Thomas said...

Try out unsercmake in kdesdk/scripts which does this for you. Its basically a fast way to compile one subdir.
the make/fast is a bit broken and changes behavior every minor cmake release, so don't expect to compile a whole project with it.

Its awesome for recompiling one dir and installing it :)