From c6407c849879bd548c139a715367ec20455b78fc Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Sat, 23 Jun 2007 11:58:27 +0000 Subject: Fix logic (When we don't find mini version of lib we must exit) svn path=/trunk/KDE/kdelibs/; revision=679228 --- modules/FindKipi.cmake | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) (limited to 'modules/FindKipi.cmake') diff --git a/modules/FindKipi.cmake b/modules/FindKipi.cmake index 5f8430dc..9afbbcdd 100644 --- a/modules/FindKipi.cmake +++ b/modules/FindKipi.cmake @@ -78,22 +78,21 @@ else (KIPI_INCLUDE_DIR AND KIPI_LIBRARIES) if (KIPI_INCLUDE_DIR AND KIPI_LIBRARIES) set(KIPI_FOUND TRUE) endif (KIPI_INCLUDE_DIR AND KIPI_LIBRARIES) - - if (KIPI_FOUND) - if (NOT Kipi_FIND_QUIETLY) - message(STATUS "Found libkipi: ${KIPI_LIBRARIES}") - endif (NOT Kipi_FIND_QUIETLY) - else (KIPI_FOUND) - if (Kipi_FIND_REQUIRED) - if (NOT KIPI_INCLUDE_DIR) - message(FATAL_ERROR "Could NOT find libkipi header files") - endif (NOT KIPI_INCLUDE_DIR) - if (NOT KIPI_LIBRARIES) - message(FATAL_ERROR "Could NOT find libkipi library") - endif (NOT KIPI_LIBRARIES) - endif (Kipi_FIND_REQUIRED) - endif (KIPI_FOUND) - endif(KIPI_VERSION_GOOD_FOUND) + endif(KIPI_VERSION_GOOD_FOUND) + if (KIPI_FOUND) + if (NOT Kipi_FIND_QUIETLY) + message(STATUS "Found libkipi: ${KIPI_LIBRARIES}") + endif (NOT Kipi_FIND_QUIETLY) + else (KIPI_FOUND) + if (Kipi_FIND_REQUIRED) + if (NOT KIPI_INCLUDE_DIR) + message(FATAL_ERROR "Could NOT find libkipi header files") + endif (NOT KIPI_INCLUDE_DIR) + if (NOT KIPI_LIBRARIES) + message(FATAL_ERROR "Could NOT find libkipi library") + endif (NOT KIPI_LIBRARIES) + endif (Kipi_FIND_REQUIRED) + endif (KIPI_FOUND) MARK_AS_ADVANCED(KIPI_INCLUDE_DIR KIPI_LIBRARIES) -- cgit v1.2.1