[kwin] Improve setting HAVE_WAYLAND_EGL

On the CI system that seemed to have been true although
Wayland Client lib was not found.
This commit is contained in:
Martin Gräßlin 2014-03-19 11:02:39 +01:00
parent ca9642b80f
commit 82fd9020e4

View file

@ -208,11 +208,12 @@ endif()
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}) set(HAVE_WAYLAND ${Wayland_Client_FOUND})
set(HAVE_WAYLAND_EGL ${Wayland_Egl_FOUND} AND ${Wayland_Client_FOUND})
if(${HAVE_WAYLAND}) if(${HAVE_WAYLAND})
set(HAVE_XKB ${XKB_FOUND}) set(HAVE_XKB ${XKB_FOUND})
set(HAVE_WAYLAND_EGL ${Wayland_Egl_FOUND})
else() else()
set(HAVE_XKB FALSE) set(HAVE_XKB FALSE)
set(HAVE_WAYLAND_EGL FALSE)
endif() endif()
include(CheckIncludeFiles) include(CheckIncludeFiles)