From 86a0a354d8f2581cc701b064dc858d1812f69a2a Mon Sep 17 00:00:00 2001 From: Jan Vorlicek Date: Mon, 24 Sep 2018 17:17:28 -0700 Subject: [PATCH] Port to 2.2 - Don't check for libintl.h on OSX --- src/pal/src/configure.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pal/src/configure.cmake b/src/pal/src/configure.cmake index 8b3fb099a429..c8b4d4450945 100644 --- a/src/pal/src/configure.cmake +++ b/src/pal/src/configure.cmake @@ -37,7 +37,10 @@ check_include_files(sys/prctl.h HAVE_PRCTL_H) check_include_files(numa.h HAVE_NUMA_H) check_include_files(pthread_np.h HAVE_PTHREAD_NP_H) check_include_files("sys/auxv.h;asm/hwcap.h" HAVE_AUXV_HWCAP_H) -check_include_files("libintl.h" HAVE_LIBINTL_H) + +if(NOT CMAKE_SYSTEM_NAME STREQUAL Darwin) + check_include_files("libintl.h" HAVE_LIBINTL_H) +endif() if(NOT CMAKE_SYSTEM_NAME STREQUAL FreeBSD AND NOT CMAKE_SYSTEM_NAME STREQUAL NetBSD) set(CMAKE_REQUIRED_FLAGS "-ldl")