From: DRC Date: Wed, 22 Jun 2011 06:00:57 +0000 (+0000) Subject: Need to explicitly link with libiconv when using libintl.a. X-Git-Tag: v1.1.90~269 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=61729dc902db44323d75c2164950779854cc3e37;p=tigervnc.git Need to explicitly link with libiconv when using libintl.a. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4517 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 95153a79..0d74e601 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -154,7 +154,7 @@ if(ENABLE_NLS) find_library(LIBINTL_LIBRARY NAMES intl libintl) check_library_exists(${LIBINTL_LIBRARY} "dgettext" "" LIBINTL_HAS_DGETTEXT) if(LIBINTL_HAS_DGETTEXT) - set(GETTEXT_LIBRARIES ${LIBINTL_LIBRARY}) + set(GETTEXT_LIBRARIES ${LIBINTL_LIBRARY} ${ICONV_LIBRARIES}) set(GETTEXT_FOUND TRUE) endif() endif()