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:
@@ -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]]
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user