From c2384636b87fae03be2ffbe61ed836fe62891c07 Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Tue, 4 Nov 2008 20:08:05 +0000 Subject: Pino was right it's better to use KDE4_PLASMA_LIBS find method to keep compatibility Remove all requires to Plasma svn path=/trunk/KDE/kdelibs/; revision=880118 --- modules/FindPlasma.cmake | 30 +++++------------------------- 1 file changed, 5 insertions(+), 25 deletions(-) (limited to 'modules/FindPlasma.cmake') diff --git a/modules/FindPlasma.cmake b/modules/FindPlasma.cmake index 05a646b8..fc724342 100644 --- a/modules/FindPlasma.cmake +++ b/modules/FindPlasma.cmake @@ -8,31 +8,11 @@ # For details see the accompanying COPYING-CMAKE-SCRIPTS file. -if (PLASMA_INCLUDE_DIR AND PLASMA_LIBS) - # Already in cache, be silent - set(Plasma_FIND_QUIETLY TRUE) -endif (PLASMA_INCLUDE_DIR AND PLASMA_LIBS) +set(PLASMA_LIBS ${KDE4_PLASMA_LIBS} ) +set(PLASMA_INCLUDE_DIR ${KDE4_INCLUDE_DIR}) - -find_path(PLASMA_INCLUDE_DIR NAMES plasma/plasma.h - PATHS - ${KDE4_INCLUDE_DIR} - ${INCLUDE_INSTALL_DIR} -) - -find_library(PLASMA_LIBS NAMES plasma - PATHS - ${KDE4_LIB_DIR} - ${LIB_INSTALL_DIR} -) - -include(FindPackageHandleStandardArgs) -FIND_PACKAGE_HANDLE_STANDARD_ARGS(Plasma DEFAULT_MSG PLASMA_LIBS PLASMA_INCLUDE_DIR ) - -if (PLASMA_FOUND) - find_file(PLASMA_OPENGL_FOUND plasma/glapplet.h - PATHS ${PLASMA_INCLUDE_DIR} - NO_DEFAULT_PATH) -endif (PLASMA_FOUND) +find_file(PLASMA_OPENGL_FOUND plasma/glapplet.h + PATHS ${PLASMA_INCLUDE_DIR} + NO_DEFAULT_PATH) mark_as_advanced(PLASMA_INCLUDE_DIR PLASMA_LIBS) -- cgit v1.2.1