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/FindKipi.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/FindKipi.cmake')
-rw-r--r-- | modules/FindKipi.cmake | 31 |
1 files changed, 15 insertions, 16 deletions
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) |