aboutsummaryrefslogtreecommitdiff
path: root/modules/FindExiv2.cmake
diff options
context:
space:
mode:
authorLaurent Montel <montel@kde.org>2007-06-23 11:58:27 +0000
committerLaurent Montel <montel@kde.org>2007-06-23 11:58:27 +0000
commitc6407c849879bd548c139a715367ec20455b78fc (patch)
tree2857c9026e4b13b3ef869c369f6cf8b43f80ccc2 /modules/FindExiv2.cmake
parent5fda52a7a7c4a8244c56dc3ab793404f2533f002 (diff)
downloadextra-cmake-modules-c6407c849879bd548c139a715367ec20455b78fc.tar.gz
extra-cmake-modules-c6407c849879bd548c139a715367ec20455b78fc.tar.bz2
Fix logic (When we don't find mini version of lib
we must exit) svn path=/trunk/KDE/kdelibs/; revision=679228
Diffstat (limited to 'modules/FindExiv2.cmake')
-rw-r--r--modules/FindExiv2.cmake29
1 files changed, 14 insertions, 15 deletions
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)