[kwin] Fix build if Wayland is found, but xkbcommon is missing
It enabled the Wayland build, but it should be disabled if xkbcommon is missing. Thanks to Project Neon for finding this issue.
This commit is contained in:
parent
d6b346df92
commit
5428a15266
1 changed files with 3 additions and 2 deletions
|
@ -207,11 +207,12 @@ endif()
|
|||
# for things that are also used by kwin libraries
|
||||
configure_file(libkwineffects/kwinconfig.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/libkwineffects/kwinconfig.h )
|
||||
# for kwin internal things
|
||||
set(HAVE_WAYLAND ${Wayland_Client_FOUND})
|
||||
if(${HAVE_WAYLAND})
|
||||
if(Wayland_Client_FOUND AND XKB_FOUND)
|
||||
set(HAVE_WAYLAND ${Wayland_Client_FOUND})
|
||||
set(HAVE_XKB ${XKB_FOUND})
|
||||
set(HAVE_WAYLAND_EGL ${Wayland_Egl_FOUND})
|
||||
else()
|
||||
set(HAVE_WAYLAND FALSE)
|
||||
set(HAVE_XKB FALSE)
|
||||
set(HAVE_WAYLAND_EGL FALSE)
|
||||
endif()
|
||||
|
|
Loading…
Reference in a new issue