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)