Gettext fix for *BSD - require special linkage as glibc is not used
This commit is contained in:
parent
43b6ca0d14
commit
e81ff1e833
|
@ -41,7 +41,6 @@ IF (WIN32)
|
||||||
DOC "gettext *iconv*.lib")
|
DOC "gettext *iconv*.lib")
|
||||||
ENDIF(WIN32)
|
ENDIF(WIN32)
|
||||||
|
|
||||||
|
|
||||||
IF(GETTEXT_INCLUDE_DIR AND GETTEXT_MSGFMT)
|
IF(GETTEXT_INCLUDE_DIR AND GETTEXT_MSGFMT)
|
||||||
IF (WIN32)
|
IF (WIN32)
|
||||||
# in the Win32 case check also for the extra linking requirements
|
# in the Win32 case check also for the extra linking requirements
|
||||||
|
@ -49,6 +48,10 @@ IF(GETTEXT_INCLUDE_DIR AND GETTEXT_MSGFMT)
|
||||||
SET(GETTEXT_FOUND TRUE)
|
SET(GETTEXT_FOUND TRUE)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
ELSE(WIN32)
|
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)
|
SET(GETTEXT_FOUND TRUE)
|
||||||
ENDIF(WIN32)
|
ENDIF(WIN32)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
Loading…
Reference in New Issue