[CMake] a dependency nag/bug

William A. Hoffman billlist at nycap.rr.com
Tue Jul 11 09:20:11 EDT 2006


At 09:05 AM 7/11/2006, Casper Boemann wrote:
>Hi there
>
>I'm developing and compiling KDE using cmake and I really like it and would 
>choose it any day over auto*, but I have this small nag.
>
>Say I've changed a headerfile somewhere which in a complete build would cause 
>lots of files to be recompiled and linked.
>
>That is fine, but now imagine that I'm using that file in some subdir 
>somewhere. Naturally I'd want to recompile that to test it, but also knowing 
>that nothing else really breaks due to the headerfile change I'd like to cd 
>into that subdir and only recompile the local files.
>
>That used to work during the auto* days, but with cmake it begins to recompile 
>everywhere else too. That means i send a lot of time recompiling stuff i 
>don't need (until later)
>
>Are there any way to avoid that, because it's really annoying and cuts my 
>development time by at least half.
>
>Please cc me as I'm not subscribed to the list
>
>ps: Keep up the good work. It's very nice being able to configure the stuff 
>myself and not having to rely on some auto* expert to do it for me
>--


You can do this:

make target/fast

Where target is the name of the library or executable that has the .h file you
are working on.  It will only build that target.  Once you get the .h file working,
you can run make and build everything else.  Currently in CMake 2.4.2 the /fast targets
are only in the toplevel makefile.

-Bill





More information about the CMake mailing list