From b7423a45cd3b06750a34a86f5801565b6d3c26ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 7 Jun 2013 11:57:08 +0200 Subject: [PATCH] Only build Wayland backend if both Wayland and EGL are found --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b4324aed25..245dd10562 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,7 +54,7 @@ endif() include_directories(${XCB_INCLUDE_DIR}) -if(WAYLAND_FOUND) +if(WAYLAND_FOUND AND KWIN_HAVE_EGL) include_directories(${WAYLAND_INCLUDE_DIR}) endif() @@ -196,7 +196,7 @@ if(KWIN_HAVE_EGL) set(kwin_KDEINIT_SRCS ${kwin_KDEINIT_SRCS} eglonxbackend.cpp) endif() -if(WAYLAND_FOUND) +if(WAYLAND_FOUND AND KWIN_HAVE_EGL) set(kwin_KDEINIT_SRCS ${kwin_KDEINIT_SRCS} egl_wayland_backend.cpp) endif() @@ -293,7 +293,7 @@ set(kwinLibs ${kwin_OPENGL_LIBS} ) -if(WAYLAND_FOUND) +if(WAYLAND_FOUND AND KWIN_HAVE_EGL) set(kwinLibs ${kwinLibs} ${kwin_WAYLAND_LIBS}) endif()