diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-12-04 21:02:03 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-12-04 21:02:26 +0100 |
commit | 80fa597a714c3a7f8562d7973382491c5fc0d8fb (patch) | |
tree | d326e9dbbf06634c4b885307558a67fb02908178 /cmake | |
parent | dab17e8d598f9faefab1c824207967384b9eb9e5 (diff) | |
download | weechat-80fa597a714c3a7f8562d7973382491c5fc0d8fb.zip |
core: fix detection of gettext headers on Darwin (closes #2031)
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/FindGettext.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/FindGettext.cmake b/cmake/FindGettext.cmake index 2460e190b..e2222ee9c 100644 --- a/cmake/FindGettext.cmake +++ b/cmake/FindGettext.cmake @@ -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) |