From a589a296f09915fde8e8d671474ebd681a44fc15 Mon Sep 17 00:00:00 2001 From: Jan Vorlicek Date: Tue, 13 Nov 2018 21:43:08 +0100 Subject: [PATCH] Port to 2.1 - Don't check for libintl.h on OSX (#20118) --- 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")