diff options
Diffstat (limited to 'modules/FindLibArt.cmake')
-rw-r--r-- | modules/FindLibArt.cmake | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/modules/FindLibArt.cmake b/modules/FindLibArt.cmake index 967e8818..e0226d6c 100644 --- a/modules/FindLibArt.cmake +++ b/modules/FindLibArt.cmake @@ -15,7 +15,7 @@ INCLUDE(UsePkgConfig) # in the FIND_PATH() and FIND_LIBRARY() calls PKGCONFIG(libart-2.0 _libArtIncDir _libArtLinkDir _libArtLinkFlags _libArtCflags) -SET(LIBART_DEFINITIONS ${_libArtCflags}) +set(LIBART_DEFINITIONS ${_libArtCflags}) # under windows, try to find the base gnuwin32 directory, do nothing under UNIX FIND_PACKAGE(GNUWIN32) @@ -36,20 +36,20 @@ FIND_LIBRARY(LIBART_LIBRARIES NAMES art_lgpl_2 ) -IF(LIBART_INCLUDE_DIR AND LIBART_LIBRARIES) - SET(LIBART_FOUND TRUE) -ENDIF(LIBART_INCLUDE_DIR AND LIBART_LIBRARIES) +if(LIBART_INCLUDE_DIR AND LIBART_LIBRARIES) + set(LIBART_FOUND TRUE) +endif(LIBART_INCLUDE_DIR AND LIBART_LIBRARIES) -IF(LIBART_FOUND) - IF(NOT LibArt_FIND_QUIETLY) - MESSAGE(STATUS "Found libart: ${LIBART_LIBRARIES}") - ENDIF(NOT LibArt_FIND_QUIETLY) -ELSE(LIBART_FOUND) - IF(LibArt_FIND_REQUIRED) - MESSAGE(FATAL_ERROR "Could not find libart") - ENDIF(LibArt_FIND_REQUIRED) -ENDIF(LIBART_FOUND) +if(LIBART_FOUND) + if(not LibArt_FIND_QUIETLY) + message(STATUS "Found libart: ${LIBART_LIBRARIES}") + endif(not LibArt_FIND_QUIETLY) +else(LIBART_FOUND) + if(LibArt_FIND_REQUIRED) + message(FATAL_ERROR "Could not find libart") + endif(LibArt_FIND_REQUIRED) +endif(LIBART_FOUND) MARK_AS_ADVANCED(LIBART_INCLUDE_DIR LIBART_LIBRARIES) |