Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit a589a29

Browse files
authored
Port to 2.1 - Don't check for libintl.h on OSX (#20118)
1 parent 79774f4 commit a589a29

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/pal/src/configure.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ check_include_files(sys/prctl.h HAVE_PRCTL_H)
3737
check_include_files(numa.h HAVE_NUMA_H)
3838
check_include_files(pthread_np.h HAVE_PTHREAD_NP_H)
3939
check_include_files("sys/auxv.h;asm/hwcap.h" HAVE_AUXV_HWCAP_H)
40-
check_include_files("libintl.h" HAVE_LIBINTL_H)
40+
41+
if(NOT CMAKE_SYSTEM_NAME STREQUAL Darwin)
42+
check_include_files("libintl.h" HAVE_LIBINTL_H)
43+
endif()
4144

4245
if(NOT CMAKE_SYSTEM_NAME STREQUAL FreeBSD AND NOT CMAKE_SYSTEM_NAME STREQUAL NetBSD)
4346
set(CMAKE_REQUIRED_FLAGS "-ldl")

0 commit comments

Comments
 (0)