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)