From b5e87e653d76fbbdd029bc8b3f0a616693137a8e Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Wed, 13 Jun 2007 18:59:34 +0000 Subject: Minor fix svn path=/trunk/KDE/kdelibs/; revision=675138 --- modules/FindKNepomuk.cmake | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/modules/FindKNepomuk.cmake b/modules/FindKNepomuk.cmake index 8074b031..967dce42 100644 --- a/modules/FindKNepomuk.cmake +++ b/modules/FindKNepomuk.cmake @@ -5,6 +5,10 @@ # KNEPOMUK_LIBRARIES - Link these to use libKNep # +if(KNEPOMUK_INCLUDES AND KNEPOMUK_LIBRARIES) + set(KNepomuk_FIND_QUIETLY TRUE) +endif(KNEPOMUK_INCLUDES AND KNEPOMUK_LIBRARIES) + FIND_PATH(KNEPOMUK_INCLUDES NAMES knepomuk/knepomuk.h @@ -27,9 +31,17 @@ FIND_LIBRARY(KNEPOMUK_LIBRARIES if(KNEPOMUK_INCLUDES AND KNEPOMUK_LIBRARIES) set(KNEPOMUK_FOUND TRUE) - message(STATUS "Found KNepomuk: ${KNEPOMUK_LIBRARIES}") -else(KNEPOMUK_INCLUDES AND KNEPOMUK_LIBRARIES) +endif(KNEPOMUK_INCLUDES AND KNEPOMUK_LIBRARIES) + +if(KNEPOMUK_FOUND) + if(NOT KNepomuk_FIND_QUIETLY) + message(STATUS "Found KNepomuk: ${KNEPOMUK_LIBRARIES}") + endif(NOT KNepomuk_FIND_QUIETLY) +else(KNEPOMUK_FOUND) if(KNepomuk_FIND_REQUIRED) message(FATAL_ERROR "Could not find KNepomuk library.") endif(KNepomuk_FIND_REQUIRED) -endif(KNEPOMUK_INCLUDES AND KNEPOMUK_LIBRARIES) +endif(KNEPOMUK_FOUND) + +MARK_AS_ADVANCED(KNEPOMUK_INCLUDES KNEPOMUK_LIBRARIES) + -- cgit v1.2.1