config.h (Re: kde unittests integrated in cmake buildsystem)

Brad King brad.king at kitware.com
Tue Feb 14 22:58:06 CET 2006


David Faure wrote:
> On Tuesday 14 February 2006 18:23, William A. Hoffman wrote:
> 
>>This seems like a bug, that can be fixed.  My guess is that the config.h file
>>is somehow being changed.
> 
> 
> Will cmake allow to split config.h into multiple files? This was mentionned already for
> other candidate build systems: we really need to split them up, so that one
> change doesn't trigger a full recompile, but only a recompile of the files
> that depend on the changed value or at least the family it belongs to.
> Doesn't need to be done now, but it would be good to know if cmake will
> allow doing it.

Any number of files can be configured with the CONFIGURE_FILE command. 
Just split up the config.h.cmake file into config_feature1.h.in, 
config_feature2.h.in, etc.  Then any place that needs to know about 
feature1 includes config_feature1.h and so forth.

-Brad


More information about the Kde-buildsystem mailing list