include dirs (Re: where to install the cmake files to ?)
David Faure
faure at kde.org
Mon Feb 20 09:43:54 CET 2006
On Sunday 19 February 2006 17:45, Alexander Neundorf wrote:
> On Sunday 19 February 2006 11:03, you wrote:
> ...
> > OK, imagine you add a method in kapplication.h, and you use that method
> > from kglobal.cpp (doesn't matter, just another file from the same
> > directory). If your compiler command line says -I${KDE4_INCLUDE_DIR}
> > -I${CURRENT_SOURCE_DIR} then kglobal.cpp will find the *installed*
> > kapplication.h instead of the local one, and it will not compile, since the
> > new method doesn't exist isn't yet in the installed kapplication.h.
>
> When compiling kdelibs/ with cmake/, /opt/kde/include isn't part of the
> include path, so it will only find the headers which are inside kdelibs/. Do
> I miss the problem ?
OK, that's good, for kdelibs. But take any other module as an example:
it needs /opt/kde/include in the include path, and it might install stuff
there itself (e.g. koffice libs), but still it should use its local include
and not the installed one, for compiling.
--
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