cmake issue: includes

William A. Hoffman billlist at nycap.rr.com
Fri Mar 24 13:02:29 GMT 2006


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
>
>this leads to the following questions:
>
>1) Now that cmake by default produces fairly quiet makefiles, how can I find 
>out what the exact commands are that it is running? Where is the gcc 
>invocation logged so I can check that it's using the right -I options (which 
>it's not). How do I make cmake produce noisy makefiles?

make VERBOSE=1
or
VERBOSE=1 make

>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.

-Bill






More information about the kde-core-devel mailing list