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/FindExiv2.cmake | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) (limited to 'modules/FindExiv2.cmake') diff --git a/modules/FindExiv2.cmake b/modules/FindExiv2.cmake index 6e34d60e..2f6caa1d 100644 --- a/modules/FindExiv2.cmake +++ b/modules/FindExiv2.cmake @@ -59,22 +59,21 @@ else (EXIV2_INCLUDE_DIR AND EXIV2_LIBRARIES) if (EXIV2_INCLUDE_DIR AND EXIV2_LIBRARIES) set(EXIV2_FOUND TRUE) endif (EXIV2_INCLUDE_DIR AND EXIV2_LIBRARIES) - - if (EXIV2_FOUND) - if (NOT Exiv2_FIND_QUIETLY) - message(STATUS "Found Exiv2: ${EXIV2_LIBRARIES}") - endif (NOT Exiv2_FIND_QUIETLY) - else (EXIV2_FOUND) - if (Exiv2_FIND_REQUIRED) - if (NOT EXIV2_INCLUDE_DIR) - message(FATAL_ERROR "Could NOT find Exiv2 header files") - endif (NOT EXIV2_INCLUDE_DIR) - if (NOT EXIV2_LIBRARIES) + endif(EXIV2_VERSION_GOOD_FOUND) + if (EXIV2_FOUND) + if (NOT Exiv2_FIND_QUIETLY) + message(STATUS "Found Exiv2: ${EXIV2_LIBRARIES}") + endif (NOT Exiv2_FIND_QUIETLY) + else (EXIV2_FOUND) + if (Exiv2_FIND_REQUIRED) + if (NOT EXIV2_INCLUDE_DIR) + message(FATAL_ERROR "Could NOT find Exiv2 header files") + endif (NOT EXIV2_INCLUDE_DIR) + if (NOT EXIV2_LIBRARIES) message(FATAL_ERROR "Could NOT find Exiv2 library") - endif (NOT EXIV2_LIBRARIES) - endif (Exiv2_FIND_REQUIRED) - endif (EXIV2_FOUND) - endif(EXIV2_VERSION_GOOD_FOUND) + endif (NOT EXIV2_LIBRARIES) + endif (Exiv2_FIND_REQUIRED) + endif (EXIV2_FOUND) MARK_AS_ADVANCED(EXIV2_INCLUDE_DIR EXIV2_LIBRARIES) -- cgit v1.2.1