You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

30 lines
999 B

diff -u -r ../weechat-2.7/cmake/FindGettext.cmake ./cmake/FindGettext.cmake
--- ../weechat-2.7/cmake/FindGettext.cmake 2019-12-08 08:48:53.000000000 +0000
+++ ./cmake/FindGettext.cmake 2019-12-11 23:28:42.812654000 +0000
@@ -46,25 +46,5 @@
check_include_files(libintl.h HAVE_LIBINTL_H)
if(HAVE_LIBINTL_H)
- check_function_exists(dgettext LIBC_HAS_DGETTEXT)
- if(LIBC_HAS_DGETTEXT)
- set(GETTEXT_FOUND TRUE)
- else()
- find_library(LIBINTL_LIBRARY NAMES intl
- PATHS
- /usr/local/lib
- /usr/lib
- )
- if(LIBINTL_LIBRARY)
- if(${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD")
- set(CMAKE_REQUIRED_LIBRARIES "iconv")
- check_library_exists(${LIBINTL_LIBRARY} "libintl_dgettext" "" LIBINTL_HAS_DGETTEXT)
- else()
- check_library_exists(${LIBINTL_LIBRARY} "dgettext" "" LIBINTL_HAS_DGETTEXT)
- endif()
- if(LIBINTL_HAS_DGETTEXT)
- set(GETTEXT_FOUND TRUE)
- endif()
- endif()
- endif()
+ set(GETTEXT_FOUND TRUE)
endif()