Skip to content

Commit

Permalink
cmake: simplify libintl check
Browse files Browse the repository at this point in the history
According to https://cmake.org/cmake/help/v3.4/module/FindIntl.html
the FindIntl module already checks for libintl.so.
  • Loading branch information
bkuhls committed Jun 4, 2017
1 parent 88cf586 commit 15e0b90
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions config/CMakeChecks.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,18 +98,11 @@ ENDIF( EXIV2_ENABLE_SHARED )

IF( EXIV2_ENABLE_NLS )
FIND_PACKAGE(Intl)
if(Intl_FOUND AND NOT MSVC)
if(Intl_FOUND)
INCLUDE_DIRECTORIES(${Intl_INCLUDE_DIRS})
find_library(LIBINTL_LIBRARY NAMES intl libintl)
if(libintl_FOUND)
INCLUDE_DIRECTORIES(${Intl_INCLUDE_DIRS})
SET(LIBINTL_LIBRARIES ${LIBINTL_LIBRARY})
else()
SET(LIBINTL_LIBRARIES)
if ( APPLE OR CYGWIN )
SET(LIBINTL_LIBRARIES -lintl)
endif()
endif()
SET(LIBINTL_LIBRARIES ${Intl_LIBRARIES})
else()
SET(LIBINTL_LIBRARIES)
endif()
IF( NOT LOCALEDIR )
SET( LOCALEDIR "${CMAKE_INSTALL_LOCALEDIR}" )
Expand Down

0 comments on commit 15e0b90

Please sign in to comment.