diff options
author | Laurent Montel <montel@kde.org> | 2007-06-13 18:59:34 +0000 |
---|---|---|
committer | Laurent Montel <montel@kde.org> | 2007-06-13 18:59:34 +0000 |
commit | b5e87e653d76fbbdd029bc8b3f0a616693137a8e (patch) | |
tree | d835b76b427d129756d4d372cbf89fa394f75968 | |
parent | 5ce570ce42ec5acd658d129f6595679346671208 (diff) | |
download | extra-cmake-modules-b5e87e653d76fbbdd029bc8b3f0a616693137a8e.tar.gz extra-cmake-modules-b5e87e653d76fbbdd029bc8b3f0a616693137a8e.tar.bz2 |
Minor fix
svn path=/trunk/KDE/kdelibs/; revision=675138
-rw-r--r-- | modules/FindKNepomuk.cmake | 18 |
1 files 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) + |