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})
if(WAYLAND_FOUND)
if(WAYLAND_FOUND AND KWIN_HAVE_EGL)
include_directories(${WAYLAND_INCLUDE_DIR})
endif()
@ -196,7 +196,7 @@ if(KWIN_HAVE_EGL)
set(kwin_KDEINIT_SRCS ${kwin_KDEINIT_SRCS} eglonxbackend.cpp)
endif()
if(WAYLAND_FOUND)
if(WAYLAND_FOUND AND KWIN_HAVE_EGL)
set(kwin_KDEINIT_SRCS ${kwin_KDEINIT_SRCS} egl_wayland_backend.cpp)
endif()
@ -293,7 +293,7 @@ set(kwinLibs
${kwin_OPENGL_LIBS}
)
if(WAYLAND_FOUND)
if(WAYLAND_FOUND AND KWIN_HAVE_EGL)
set(kwinLibs ${kwinLibs} ${kwin_WAYLAND_LIBS})
endif()