aboutsummaryrefslogtreecommitdiff
path: root/modules/FindKNepomuk.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'modules/FindKNepomuk.cmake')
-rw-r--r--modules/FindKNepomuk.cmake14
1 files changed, 2 insertions, 12 deletions
diff --git a/modules/FindKNepomuk.cmake b/modules/FindKNepomuk.cmake
index ba483a8e..dbbadfeb 100644
--- a/modules/FindKNepomuk.cmake
+++ b/modules/FindKNepomuk.cmake
@@ -25,19 +25,9 @@ FIND_LIBRARY(KNEPOMUK_LIBRARIES
${LIB_INSTALL_DIR}
)
-if(KNEPOMUK_INCLUDES AND KNEPOMUK_LIBRARIES)
- set(KNEPOMUK_FOUND TRUE)
-endif(KNEPOMUK_INCLUDES AND KNEPOMUK_LIBRARIES)
+include(FindPackageHandleStandardArgs)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(KNepomuk DEFAULT_MSG KNEPOMUK_INCLUDES 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_FOUND)
MARK_AS_ADVANCED(KNEPOMUK_INCLUDES KNEPOMUK_LIBRARIES)