diff options
author | Pino Toscano <pino@kde.org> | 2008-06-26 20:19:06 +0200 |
---|---|---|
committer | Pino Toscano <pino@kde.org> | 2008-06-26 20:19:06 +0200 |
commit | 9e9543b105b39f8b0048c00fc94741e43ad615e9 (patch) | |
tree | fc3c07ce9aeea2d96ffd2b034ae44e790d4b72b6 /cmake | |
parent | fec41ceddebe194f139bcc5b2f3fa74e7d1ae502 (diff) |
use FindPackageHandleStandardArgs
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/FindLIBOPENJPEG.cmake | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/cmake/modules/FindLIBOPENJPEG.cmake b/cmake/modules/FindLIBOPENJPEG.cmake index d883a4c0..973aa167 100644 --- a/cmake/modules/FindLIBOPENJPEG.cmake +++ b/cmake/modules/FindLIBOPENJPEG.cmake @@ -29,15 +29,8 @@ else (LIBOPENJPEG_LIBRARIES AND LIBOPENJPEG_INCLUDE_DIR) set(LIBOPENJPEG_FOUND TRUE) endif(LIBOPENJPEG_INCLUDE_DIR AND LIBOPENJPEG_LIBRARIES) - IF (LIBOPENJPEG_FOUND) - IF (NOT LIBOPENJPEG_FIND_QUIETLY) - MESSAGE(STATUS "Found libopenjpeg: ${LIBOPENJPEG_LIBRARIES}") - ENDIF (NOT LIBOPENJPEG_FIND_QUIETLY) - ELSE (LIBOPENJPEG_FOUND) - IF (LIBOPENJPEG_FIND_REQUIRED) - MESSAGE(FATAL_ERROR "Could not find libopenjpeg library") - ENDIF (LIBOPENJPEG_FIND_REQUIRED) - ENDIF (LIBOPENJPEG_FOUND) + include(FindPackageHandleStandardArgs) + find_package_handle_standard_args(LibOpenJPEG DEFAULT_MSG LIBOPENJPEG_LIBRARIES LIBOPENJPEG_INCLUDE_DIR) endif (LIBOPENJPEG_LIBRARIES AND LIBOPENJPEG_INCLUDE_DIR) |