From 9d32d67f6a70cb867a26400b6107f3ed7600c3eb Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Tue, 7 Aug 2007 20:03:40 +0000 Subject: Use FIND_PACKAGE_HANDLE_STANDARD_ARGS svn path=/trunk/KDE/kdelibs/; revision=697445 --- modules/FindKonto.cmake | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'modules/FindKonto.cmake') diff --git a/modules/FindKonto.cmake b/modules/FindKonto.cmake index 2042719c..0aeccedf 100644 --- a/modules/FindKonto.cmake +++ b/modules/FindKonto.cmake @@ -27,18 +27,6 @@ FIND_LIBRARY(KONTO_LIBRARIES ${LIB_INSTALL_DIR} ) - -if(KONTO_INCLUDES AND KONTO_LIBRARIES) - set(KONTO_FOUND TRUE) -endif(KONTO_INCLUDES AND KONTO_LIBRARIES) - -if(KONTO_FOUND) - if (NOT Konto_FIND_QUIETLY) - message(STATUS "Found Konto: ${KONTO_LIBRARIES}") - endif (NOT Konto_FIND_QUIETLY) -else(KONTO_FOUND) - if(Konto_FIND_REQUIRED) - message(FATAL_ERROR "Could not find Konto library.") - endif(Konto_FIND_REQUIRED) -endif(KONTO_FOUND) +include(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(Kondo DEFAULT_MSG KONTO_INCLUDES KONTO_LIBRARIES) -- cgit v1.2.1