diff options
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) |