Make sure we find X11 libraries.

Both Konqueror and the folderview applet use X11 functions directly so
we need to make sure CMake is finding it. Right now, this works
because Qt4ConfigDependentSettings.cmake that is distributed with KDE
does an indirect find_package. The one in upstream CMake does not, so
it's a ticking time bomb and depends on installation configuration.
This commit is contained in:
Thiago Macieira 2013-02-18 08:53:32 -08:00
parent 342e894932
commit 81f7f6ac23
2 changed files with 3 additions and 0 deletions

View file

@ -1,6 +1,7 @@
add_definitions(-D_LARGEFILE64_SOURCE )
find_package(X11 REQUIRED) # both subdirs require the X11 libs
add_subdirectory( src )
add_subdirectory( client )

View file

@ -1,5 +1,7 @@
project(plasma-folderview)
find_package(X11 REQUIRED)
set(folderview_SRCS
folderview.cpp
abstractitemview.cpp