From d9dc5afae47343d2384e40f720a6bf3f9f8992b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 3 Feb 2011 22:28:42 +0100 Subject: [PATCH] Only link against GLES if building for GLES. It took me two hours to figure out that kwineffects linked the GLES libraries and that was causing my kwin not to work :-( --- lib/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index f59f234ea5..b5f3619ebb 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -55,11 +55,11 @@ if(OPENGL_FOUND AND NOT KWIN_HAVE_OPENGLES_COMPOSITING) endif(DL_LIBRARY) include_directories(${OPENGL_INCLUDE_DIR}) endif(OPENGL_FOUND AND NOT KWIN_HAVE_OPENGLES_COMPOSITING) -if(OPENGLES_FOUND) +if(KWIN_HAVE_OPENGLES_COMPOSITING) target_link_libraries(kwineffects ${OPENGLES_LIBRARIES} ${OPENGLES_EGL_LIBRARIES}) target_link_libraries(kwineffects LINK_INTERFACE_LIBRARIES ${OPENGLES_LIBRARIES} ${OPENGLES_EGL_LIBRARIES}) include_directories(${OPENGLES_INCLUDE_DIR}) -endif(OPENGLES_FOUND) +endif(KWIN_HAVE_OPENGLES_COMPOSITING) if (X11_Xrender_FOUND) target_link_libraries(kwineffects ${X11_Xrender_LIB}) endif (X11_Xrender_FOUND)