Skip to content

Commit

Permalink
Gettext fix for *BSD - require special linkage as glibc is not used
Browse files Browse the repository at this point in the history
  • Loading branch information
q66 committed Aug 11, 2011
1 parent 43b6ca0 commit e81ff1e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmake/Modules/FindGettextLib.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,17 @@ IF (WIN32)
DOC "gettext *iconv*.lib")
ENDIF(WIN32)


IF(GETTEXT_INCLUDE_DIR AND GETTEXT_MSGFMT)
IF (WIN32)
# in the Win32 case check also for the extra linking requirements
IF(GETTEXT_LIBRARY AND GETTEXT_DLL AND GETTEXT_ICONV_DLL)
SET(GETTEXT_FOUND TRUE)
ENDIF()
ELSE(WIN32)
# *BSD variants require special linkage as they don't use glibc
IF(${CMAKE_SYSTEM_NAME} MATCHES "BSD")
SET(GETTEXT_LIBRARY "intl")
ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "BSD")
SET(GETTEXT_FOUND TRUE)
ENDIF(WIN32)
ENDIF()
Expand Down

0 comments on commit e81ff1e

Please sign in to comment.