Bind cmake option HAVE_WAYLAND_EGL to KWIN_HAVE_EGL

If we don't have EGL we also do not want Wayland_EGL.
This commit is contained in:
Martin Gräßlin 2015-03-27 08:49:59 +01:00
parent 65839e1617
commit 00844ffba7

View file

@ -262,7 +262,11 @@ configure_file(libkwineffects/kwinconfig.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/lib
if(XKB_FOUND AND KF5Wayland_FOUND)
set(HAVE_WAYLAND TRUE)
set(HAVE_XKB ${XKB_FOUND})
set(HAVE_WAYLAND_EGL ${Wayland_Egl_FOUND})
if (KWIN_HAVE_EGL)
set(HAVE_WAYLAND_EGL ${Wayland_Egl_FOUND})
else()
set(HAVE_WAYLAND_EGL FALSE)
endif()
set(HAVE_WAYLAND_CURSOR ${Wayland_Cursor_FOUND})
set(HAVE_X11_XCB ${X11_XCB_FOUND})
else()