From 52859673a5572bf58945fc024b93f3f8edfc052c Mon Sep 17 00:00:00 2001 From: David Faure Date: Tue, 21 Mar 2006 23:49:38 +0000 Subject: GETTEXT_LIBRARIES was used, but never actually set to anything. This is necessary for me on the Mac (not sure why it linked on linux...) svn path=/trunk/KDE/kdelibs/; revision=521236 --- modules/FindGettext.cmake | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'modules/FindGettext.cmake') diff --git a/modules/FindGettext.cmake b/modules/FindGettext.cmake index cc29f0c1..be931d80 100644 --- a/modules/FindGettext.cmake +++ b/modules/FindGettext.cmake @@ -21,6 +21,14 @@ if (HAVE_LIBINTL_H) set(GETTEXT_SOURCE "built in libc (libintl.h present)") endif (HAVE_LIBINTL_H) +# Check for libintl, and check that it provides libintl_dgettext. +FIND_LIBRARY(LIBINTL_LIBRARY NAMES intl libintl + PATHS + /usr/lib + /usr/local/lib +) +CHECK_LIBRARY_EXISTS(${LIBINTL_LIBRARY} "libintl_dgettext" "" GETTEXT_LIBRARIES) + if (GETTEXT_FOUND) if (NOT Gettext_FIND_QUIETLY) message(STATUS "Found Gettext: ${GETTEXT_SOURCE}") -- cgit v1.2.1