how to order include directories best ?

David Faure faure at kde.org
Sun Apr 30 12:42:34 CEST 2006


On Tuesday 25 April 2006 16:04, Brad King wrote:
> David Faure wrote:
> > On Sun, Apr 23, 2006 at 11:33:53AM +0200, Alexander Neundorf wrote:
> >>When building a KDE module, it is required that it prefers the headers in the 
> >>module sources over the installed headers.
> > 
> > Could maybe the solution be that cmake automatically puts all
> >  -I<relative path>
> > before all
> >  -I<absolute path>
> > ?
> 
> I think what we really want is that all the include directories inside 
> the user project come before all the diretories outside the user 
> project.  I've added an option to the CMake generators.  If the project does
> 
>    SET(CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE 1)
> 
> then this include directory ordering will be used.  KDE can set it in 
> the same place it currently sets CMAKE_INCLUDE_DIRECTORIES_BEFORE. 
> We'll include this change in the 2.4 release.

This is excellent!
Thank you very much.

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).


More information about the Kde-buildsystem mailing list