Fix build without Wayland (try 2)

Set HAVE_X11_XCB to FALSE if not building with Wayland support.
This commit is contained in:
Martin Gräßlin 2015-03-20 16:01:04 +01:00
parent 8d8c6b09ac
commit 5764a087ee

View file

@ -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)