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")