From 0740a01c6ab242b88d8a34cec3729544dd1e605d Mon Sep 17 00:00:00 2001 From: Philipp Knechtges Date: Sun, 4 Sep 2011 18:28:31 +0200 Subject: [PATCH] kwin: fix kcm_kwin4_effect_builtins build Add the missing definition of KWIN_HAVE_OPENGL, which has been a part of kwinconfig.h before. --- effects/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/effects/CMakeLists.txt b/effects/CMakeLists.txt index 5734b289fa..a9eea1d85a 100644 --- a/effects/CMakeLists.txt +++ b/effects/CMakeLists.txt @@ -47,6 +47,11 @@ macro( KWIN4_ADD_EFFECT_CONFIG name ) kde4_add_ui_files( kwin4_effect_src ${kwin4_effect_ui} ) kde4_add_plugin( kcm_kwin4_effect_${name} ${kwin4_effect_src} ) + if(OPENGLES_FOUND) + set_target_properties(kcm_kwin4_effect_${name} PROPERTIES COMPILE_FLAGS "-DKWIN_HAVE_OPENGL -DKWIN_HAVE_OPENGLES") + elseif(OPENGL_FOUND) + set_target_properties(kcm_kwin4_effect_${name} PROPERTIES COMPILE_FLAGS -DKWIN_HAVE_OPENGL) + endif(OPENGLES_FOUND) target_link_libraries( kcm_kwin4_effect_${name} kwineffects ${KDE4_KIO_LIBS} ${KDE4_KDEUI_LIBS} ) install( TARGETS kcm_kwin4_effect_${name} DESTINATION ${PLUGIN_INSTALL_DIR} ) endmacro( KWIN4_ADD_EFFECT_CONFIG )