Properly add define for gles

Otherwise some parts still include epoxy/glx.h.
This commit is contained in:
Martin Gräßlin 2015-05-07 14:11:30 +02:00
parent 2220ae44c4
commit 2a8d7664b3

View file

@ -257,6 +257,7 @@ endif()
if(${Qt5Gui_OPENGL_IMPLEMENTATION} STREQUAL "GLESv2") if(${Qt5Gui_OPENGL_IMPLEMENTATION} STREQUAL "GLESv2")
set(KWIN_BUILD_OPENGLES TRUE) set(KWIN_BUILD_OPENGLES TRUE)
message("Building KWin with OpenGL ES 2 support") message("Building KWin with OpenGL ES 2 support")
add_definitions(-DKWIN_HAVE_OPENGLES)
endif() endif()
if(NOT KWIN_BUILD_OPENGL AND NOT KWIN_BUILD_OPENGLES) if(NOT KWIN_BUILD_OPENGL AND NOT KWIN_BUILD_OPENGLES)