summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorCurl Upstream <curl-library@cool.haxx.se>2016-12-22 15:41:14 (GMT)
committerBrad King <brad.king@kitware.com>2017-02-07 16:37:30 (GMT)
commit4cc2908fdaaf1ab8afe5c2ae5dbb3401859a9aab (patch)
treeef3a36a4eb9b0c43881db54e61574378e104b936 /CMakeLists.txt
parent93cc249f3dd7ecd621cd063e4c08bbdb54d971e8 (diff)
downloadCMake-4cc2908fdaaf1ab8afe5c2ae5dbb3401859a9aab.zip
CMake-4cc2908fdaaf1ab8afe5c2ae5dbb3401859a9aab.tar.gz
CMake-4cc2908fdaaf1ab8afe5c2ae5dbb3401859a9aab.tar.bz2
curl 2016-12-22 (44b9b4d4)
Code extracted from: https://github.com/curl/curl.git at commit 44b9b4d4f56d6f6de92c89636994c03984e9cd01 (curl-7_52_1).
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ed3f38a..a6a7368 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -742,7 +742,11 @@ endif()
check_symbol_exists(basename "${CURL_INCLUDES}" HAVE_BASENAME)
check_symbol_exists(socket "${CURL_INCLUDES}" HAVE_SOCKET)
-check_symbol_exists(poll "${CURL_INCLUDES}" HAVE_POLL)
+# poll on macOS is unreliable, it first did not exist, then was broken until
+# fixed in 10.9 only to break again in 10.12.
+if(NOT APPLE)
+ check_symbol_exists(poll "${CURL_INCLUDES}" HAVE_POLL)
+endif()
check_symbol_exists(select "${CURL_INCLUDES}" HAVE_SELECT)
check_symbol_exists(strdup "${CURL_INCLUDES}" HAVE_STRDUP)
check_symbol_exists(strstr "${CURL_INCLUDES}" HAVE_STRSTR)