This commit is contained in:
clanmills 2017-06-04 07:41:03 +01:00
parent 23ac3eeced
commit 4e86c1d61c

View File

@ -98,13 +98,16 @@ ENDIF( EXIV2_ENABLE_SHARED )
IF( EXIV2_ENABLE_NLS )
FIND_PACKAGE(Intl)
if(Intl_FOUND)
if(Intl_FOUND AND NOT MSVC)
INCLUDE_DIRECTORIES(${Intl_INCLUDE_DIRS})
find_library(LIBINTL_LIBRARY NAMES intl libintl)
if(libintl_FOUND)
SET(LIBINTL_LIBRARIES ${LIBINTL_LIBRARY})
else()
SET(LIBINTL_LIBRARIES -lintl)
SET(LIBINTL_LIBRARIES)
if ( APPLE OR CYGWIN )
SET(LIBINTL_LIBRARIES -lintl)
endif()
endif()
endif()
IF( NOT LOCALEDIR )