diff options
author | Laurent Montel <montel@kde.org> | 2007-06-23 11:58:27 +0000 |
---|---|---|
committer | Laurent Montel <montel@kde.org> | 2007-06-23 11:58:27 +0000 |
commit | c6407c849879bd548c139a715367ec20455b78fc (patch) | |
tree | 2857c9026e4b13b3ef869c369f6cf8b43f80ccc2 /modules/FindKdcraw.cmake | |
parent | 5fda52a7a7c4a8244c56dc3ab793404f2533f002 (diff) | |
download | extra-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/FindKdcraw.cmake')
-rw-r--r-- | modules/FindKdcraw.cmake | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/modules/FindKdcraw.cmake b/modules/FindKdcraw.cmake index 06e408d6..371ff9c3 100644 --- a/modules/FindKdcraw.cmake +++ b/modules/FindKdcraw.cmake @@ -78,22 +78,21 @@ else (KDCRAW_INCLUDE_DIR AND KDCRAW_LIBRARIES) if (KDCRAW_INCLUDE_DIR AND KDCRAW_LIBRARIES) set(KDCRAW_FOUND TRUE) endif (KDCRAW_INCLUDE_DIR AND KDCRAW_LIBRARIES) - - if (KDCRAW_FOUND) - if (NOT Kdcraw_FIND_QUIETLY) - message(STATUS "Found libkdcraw: ${KDCRAW_LIBRARIES}") - endif (NOT Kdcraw_FIND_QUIETLY) - else (KDCRAW_FOUND) - if (Kdcraw_FIND_REQUIRED) - if (NOT KDCRAW_INCLUDE_DIR) - message(FATAL_ERROR "Could NOT find libkdcraw header files") - endif (NOT KDCRAW_INCLUDE_DIR) - if (NOT KDCRAW_LIBRARIES) - message(FATAL_ERROR "Could NOT find libkdcraw library") - endif (NOT KDCRAW_LIBRARIES) - endif (Kdcraw_FIND_REQUIRED) - endif (KDCRAW_FOUND) - endif(KDCRAW_VERSION_GOOD_FOUND) + endif(KDCRAW_VERSION_GOOD_FOUND) + if (KDCRAW_FOUND) + if (NOT Kdcraw_FIND_QUIETLY) + message(STATUS "Found libkdcraw: ${KDCRAW_LIBRARIES}") + endif (NOT Kdcraw_FIND_QUIETLY) + else (KDCRAW_FOUND) + if (Kdcraw_FIND_REQUIRED) + if (NOT KDCRAW_INCLUDE_DIR) + message(FATAL_ERROR "Could NOT find libkdcraw header files") + endif (NOT KDCRAW_INCLUDE_DIR) + if (NOT KDCRAW_LIBRARIES) + message(FATAL_ERROR "Could NOT find libkdcraw library") + endif (NOT KDCRAW_LIBRARIES) + endif (Kdcraw_FIND_REQUIRED) + endif (KDCRAW_FOUND) MARK_AS_ADVANCED(KDCRAW_INCLUDE_DIR KDCRAW_LIBRARIES) |