cmake issue: includes

David Faure faure at kde.org
Fri Mar 24 13:13:26 GMT 2006


On Friday 24 March 2006 14:02, William A. Hoffman wrote:
> At 06:05 AM 3/24/2006, Adriaan de Groot wrote:
> >Building kdebase against yesterday's kdelibs:
> >
> >adridg at kde$ gmake
> >Building CXX object libkonq/CMakeFiles/konq.dir/konq_operations.o
> >/mnt/src/kde/kde-4.0/kdebase/libkonq/konq_operations.cc:65:18: X11/Xlib.h: No 
> >such file or directory

> >2) Why isn't the X11 include path added to $(all_includes) or whatever cmake 
> >calls it? How can I add this in the CMakefiles?
> 
> It should be something like this:
> 
> include_directories(${X11_INCLUDE_DIR})
> 
> Assuming find_package(X11) has been called earlier.

And if you do it in the toplevel CMakeFiles.txt it will affect all of kdebase,
which is probably what we want. Well, at least in workspace/, but libkonq isn't
X11-independent yet...

-- 
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-core-devel mailing list