Fix build without Wayland (try 2)
Set HAVE_X11_XCB to FALSE if not building with Wayland support.
This commit is contained in:
parent
8d8c6b09ac
commit
5764a087ee
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue