summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-08-23 16:39:33 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-08-24 17:44:29 +0200
commit825911be587bbabc3b7e4777ed3bd1bb7c858b58 (patch)
tree884b85397f08e284697129278a988b7b6ccc5071
parente5d77dc2ca7d047a55aa56f156f5651352386c1b (diff)
downloadcurl-825911be587bbabc3b7e4777ed3bd1bb7c858b58.tar.gz
cmake: avoid poll() on macOS
... like we do in configure builds. Since poll() on macOS is not reliable enough. Reported-by: marc-groundctl Fixes #7595 Closes #7619
-rw-r--r--CMake/OtherTests.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/CMake/OtherTests.cmake b/CMake/OtherTests.cmake
index 7f369938f..5cddf4afa 100644
--- a/CMake/OtherTests.cmake
+++ b/CMake/OtherTests.cmake
@@ -237,6 +237,9 @@ endif()
unset(CMAKE_TRY_COMPILE_TARGET_TYPE)
if(NOT DEFINED CMAKE_TOOLCHAIN_FILE)
+ if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
+ # only try this on non-macOS
+
# if not cross-compilation...
include(CheckCSourceRuns)
set(CMAKE_REQUIRED_FLAGS "")
@@ -279,5 +282,6 @@ if(NOT DEFINED CMAKE_TOOLCHAIN_FILE)
}
return 0;
}" HAVE_POLL_FINE)
+ endif()
endif()