Only build Wayland backend if both Wayland and EGL are found

This commit is contained in:
Martin Gräßlin 2013-06-07 11:57:08 +02:00
parent 31fb163a07
commit b7423a45cd

View file

@ -54,7 +54,7 @@ endif()
include_directories(${XCB_INCLUDE_DIR}) include_directories(${XCB_INCLUDE_DIR})
if(WAYLAND_FOUND) if(WAYLAND_FOUND AND KWIN_HAVE_EGL)
include_directories(${WAYLAND_INCLUDE_DIR}) include_directories(${WAYLAND_INCLUDE_DIR})
endif() endif()
@ -196,7 +196,7 @@ if(KWIN_HAVE_EGL)
set(kwin_KDEINIT_SRCS ${kwin_KDEINIT_SRCS} eglonxbackend.cpp) set(kwin_KDEINIT_SRCS ${kwin_KDEINIT_SRCS} eglonxbackend.cpp)
endif() endif()
if(WAYLAND_FOUND) if(WAYLAND_FOUND AND KWIN_HAVE_EGL)
set(kwin_KDEINIT_SRCS ${kwin_KDEINIT_SRCS} egl_wayland_backend.cpp) set(kwin_KDEINIT_SRCS ${kwin_KDEINIT_SRCS} egl_wayland_backend.cpp)
endif() endif()
@ -293,7 +293,7 @@ set(kwinLibs
${kwin_OPENGL_LIBS} ${kwin_OPENGL_LIBS}
) )
if(WAYLAND_FOUND) if(WAYLAND_FOUND AND KWIN_HAVE_EGL)
set(kwinLibs ${kwinLibs} ${kwin_WAYLAND_LIBS}) set(kwinLibs ${kwinLibs} ${kwin_WAYLAND_LIBS})
endif() endif()