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:
parent
65839e1617
commit
00844ffba7
1 changed files with 5 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue