From b49b631851b6781624baeacdb7008341f253aa8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 24 Feb 2014 14:46:29 +0100 Subject: [PATCH] Use new components based FindWayland from ECM This allows us to better control which features are available. Requires 6277f5d8acbca3704d3e9ebbdee908537cd7b6eb in ECM. --- CMakeLists.txt | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 93aa2b4915..5747085292 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -62,10 +62,6 @@ endif() include_directories(${XCB_INCLUDE_DIR}) -if(WAYLAND_FOUND) - include_directories(${WAYLAND_INCLUDE_DIR}) -endif() - # for things that are also used by kwin libraries configure_file(libkwineffects/kwinconfig.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/libkwineffects/kwinconfig.h ) # for kwin internal things @@ -212,9 +208,9 @@ if(KWIN_HAVE_EGL) set(kwin_KDEINIT_SRCS ${kwin_KDEINIT_SRCS} eglonxbackend.cpp) endif() -if(WAYLAND_FOUND) +if(Wayland_Client_FOUND) set(kwin_KDEINIT_SRCS ${kwin_KDEINIT_SRCS} wayland_backend.cpp) - if(KWIN_HAVE_EGL) + if(KWIN_HAVE_EGL AND Wayland_Egl_FOUND) set(kwin_KDEINIT_SRCS ${kwin_KDEINIT_SRCS} egl_wayland_backend.cpp) endif() endif() @@ -283,12 +279,12 @@ set(kwin_XCB_LIBS ) set(kwin_WAYLAND_LIBS - ${WAYLAND_CLIENT_LIBRARIES} + Wayland::Client ${XCB_XTEST_LIBRARY} ) set(kwin_WAYLAND_EGL_LIBS - ${WAYLAND_EGL_LIBRARIES} + Wayland::Egl ) set(kwin_OPENGL_LIBS ) @@ -321,9 +317,9 @@ set(kwinLibs ${kwin_OPENGL_LIBS} ) -if(WAYLAND_FOUND) +if(Wayland_Client_FOUND) set(kwinLibs ${kwinLibs} ${kwin_WAYLAND_LIBS}) - if(KWIN_HAVE_EGL) + if(KWIN_HAVE_EGL AND Wayland_Egl_FOUND) set(kwinLibs ${kwinLibs} ${kwin_WAYLAND_EGL_LIBS}) endif() endif()