1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

core: fix detection of gettext headers on Darwin (closes #2031)

This commit is contained in:
Sébastien Helleu
2023-12-04 21:02:03 +01:00
parent dab17e8d59
commit 80fa597a71
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -62,6 +62,7 @@ Tests::
Build::
* core: fix detection of gettext headers on Darwin (issue #2031)
* core: make libintl.h required if CMake option ENABLE_NLS is enabled (issue #2031)
[[v4.1.2]]
+4
View File
@@ -43,6 +43,10 @@ find_path(LIBINTL_INCLUDE
set(CMAKE_REQUIRED_INCLUDES ${LIBINTL_INCLUDE})
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(CMAKE_REQUIRED_FLAGS "-lintl")
endif()
check_include_files(libintl.h HAVE_LIBINTL_H)
if(NOT HAVE_LIBINTL_H)