diff options
Diffstat (limited to 'modules/FindKexiv2.cmake')
| -rw-r--r-- | modules/FindKexiv2.cmake | 31 | 
1 files changed, 15 insertions, 16 deletions
| diff --git a/modules/FindKexiv2.cmake b/modules/FindKexiv2.cmake index e292334b..8093fbd4 100644 --- a/modules/FindKexiv2.cmake +++ b/modules/FindKexiv2.cmake @@ -78,22 +78,21 @@ else (KEXIV2_INCLUDE_DIR AND KEXIV2_LIBRARIES)          if (KEXIV2_INCLUDE_DIR AND KEXIV2_LIBRARIES)              set(KEXIV2_FOUND TRUE)          endif (KEXIV2_INCLUDE_DIR AND KEXIV2_LIBRARIES) -     -        if (KEXIV2_FOUND) -            if (NOT Kexiv2_FIND_QUIETLY) -                message(STATUS "Found libkexiv2: ${KEXIV2_LIBRARIES}") -            endif (NOT Kexiv2_FIND_QUIETLY) -        else (KEXIV2_FOUND) -            if (Kexiv2_FIND_REQUIRED) -                if (NOT KEXIV2_INCLUDE_DIR) -                    message(FATAL_ERROR "Could NOT find libkexiv2 header files") -                endif (NOT KEXIV2_INCLUDE_DIR) -                if (NOT KEXIV2_LIBRARIES) -                    message(FATAL_ERROR "Could NOT find libkexiv2 library") -                endif (NOT KEXIV2_LIBRARIES) -            endif (Kexiv2_FIND_REQUIRED) -        endif (KEXIV2_FOUND) -    endif(KEXIV2_VERSION_GOOD_FOUND) +      endif(KEXIV2_VERSION_GOOD_FOUND)  +      if (KEXIV2_FOUND) +          if (NOT Kexiv2_FIND_QUIETLY) +              message(STATUS "Found libkexiv2: ${KEXIV2_LIBRARIES}") +          endif (NOT Kexiv2_FIND_QUIETLY) +      else (KEXIV2_FOUND) +          if (Kexiv2_FIND_REQUIRED) +              if (NOT KEXIV2_INCLUDE_DIR) +                  message(FATAL_ERROR "Could NOT find libkexiv2 header files") +              endif (NOT KEXIV2_INCLUDE_DIR) +              if (NOT KEXIV2_LIBRARIES) +                  message(FATAL_ERROR "Could NOT find libkexiv2 library") +              endif (NOT KEXIV2_LIBRARIES) +          endif (Kexiv2_FIND_REQUIRED) +      endif (KEXIV2_FOUND)      MARK_AS_ADVANCED(KEXIV2_INCLUDE_DIR KEXIV2_LIBRARIES) | 
