From 5764a087ee5d2f18910a8c983ff49c1ea6682aed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 20 Mar 2015 16:01:04 +0100 Subject: [PATCH] Fix build without Wayland (try 2) Set HAVE_X11_XCB to FALSE if not building with Wayland support. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7d3e7bde23..8bd6a105e5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -268,10 +268,12 @@ if(Wayland_Client_FOUND AND XKB_FOUND AND KF5Wayland_FOUND) set(HAVE_WAYLAND ${Wayland_Client_FOUND}) set(HAVE_XKB ${XKB_FOUND}) set(HAVE_WAYLAND_EGL ${Wayland_Egl_FOUND}) + set(HAVE_X11_XCB ${X11_XCB_FOUND}) else() set(HAVE_WAYLAND FALSE) set(HAVE_XKB FALSE) set(HAVE_WAYLAND_EGL FALSE) + set(HAVE_X11_XCB FALSE) endif() if(XCB_CURSOR_FOUND) @@ -280,8 +282,6 @@ else() set(HAVE_XCB_CURSOR FALSE) endif() -set(HAVE_X11_XCB ${X11_XCB_FOUND}) - include(CheckIncludeFiles) check_include_files(unistd.h HAVE_UNISTD_H) check_include_files(malloc.h HAVE_MALLOC_H)