diff options
Diffstat (limited to 'modules')
| -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) + | 
