From 825dc168ed09e440f4d1d0048d3e25a4b21f3051 Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Sun, 4 Jan 2009 17:58:19 +0000 Subject: -add a test for plasma/glapplet.h to see whether the plasma opengl support is installed (this test was previously in FindPlasma.cmake but at least in trunk/KDE/ never executed, so in the only place where the result was used (kdeplasma-addons/applets/) the result was always wrong) Alex svn path=/trunk/KDE/kdelibs/; revision=905603 --- modules/FindKDE4Internal.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/FindKDE4Internal.cmake b/modules/FindKDE4Internal.cmake index 86ab17f7..1587bdf0 100644 --- a/modules/FindKDE4Internal.cmake +++ b/modules/FindKDE4Internal.cmake @@ -46,6 +46,8 @@ # KDE4_KFORMULA_LIBRARY - the kformula library # KDE4_PLASMA_LIBRARY - the plasma library # +# KDE4_PLASMA_OPENGL_FOUND - TRUE if the OpenGL support of Plasma has been found, NOTFOUND otherwise +# # Compared to the variables above, the following variables # also contain all of the depending libraries, so the variables below # should be used instead of the ones above: @@ -493,6 +495,9 @@ else (_kdeBootStrapping) set(KDE4_INCLUDE_DIR ${KDE4_INCLUDE_INSTALL_DIR} ) + # This setting is currently not recorded in KDELibsDependencies.cmake: + find_file(KDE4_PLASMA_OPENGL_FOUND plasma/glapplet.h PATHS ${KDE4_INCLUDE_DIR} NO_DEFAULT_PATH) + # now include the file with the imported tools (executable targets) # Having the libs and tools in two separate files should help with cross compiling. include(${kde_cmake_module_dir}/KDELibsToolsTargets.cmake) -- cgit v1.2.1