[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:
Martin Gräßlin 2014-03-20 12:54:24 +01:00
parent d6b346df92
commit 5428a15266

View file

@ -207,11 +207,12 @@ endif()
# for things that are also used by kwin libraries # for things that are also used by kwin libraries
configure_file(libkwineffects/kwinconfig.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/libkwineffects/kwinconfig.h ) configure_file(libkwineffects/kwinconfig.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/libkwineffects/kwinconfig.h )
# for kwin internal things # for kwin internal things
set(HAVE_WAYLAND ${Wayland_Client_FOUND}) if(Wayland_Client_FOUND AND XKB_FOUND)
if(${HAVE_WAYLAND}) set(HAVE_WAYLAND ${Wayland_Client_FOUND})
set(HAVE_XKB ${XKB_FOUND}) set(HAVE_XKB ${XKB_FOUND})
set(HAVE_WAYLAND_EGL ${Wayland_Egl_FOUND}) set(HAVE_WAYLAND_EGL ${Wayland_Egl_FOUND})
else() else()
set(HAVE_WAYLAND FALSE)
set(HAVE_XKB FALSE) set(HAVE_XKB FALSE)
set(HAVE_WAYLAND_EGL FALSE) set(HAVE_WAYLAND_EGL FALSE)
endif() endif()