summaryrefslogtreecommitdiff
path: root/Utilities
diff options
context:
space:
mode:
authorGregor Jasny <gjasny@googlemail.com>2015-09-03 13:18:19 +0200
committerBrad King <brad.king@kitware.com>2015-09-10 11:25:42 -0400
commit01b6ecdb41ec0a60f8abc70555aca6eb1463fe3f (patch)
tree8ebb427fc3b4471510bb8515d7d70bd3b73ac557 /Utilities
parente7777cc5635e95d3b36aaf4e9a528c92534aca30 (diff)
downloadcmake-01b6ecdb41ec0a60f8abc70555aca6eb1463fe3f.tar.gz
curl: Do not use libnetwork on Apple platforms
Starting with OS X 10.11 there is a library called libnetwork which will be picked up during curl configuration. This breaks backward compatibility of the resulting binaries because libnetwork is not available on older OS X versions.
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/cmcurl/CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/Utilities/cmcurl/CMakeLists.txt b/Utilities/cmcurl/CMakeLists.txt
index d12c73f398..39b70c0d6d 100644
--- a/Utilities/cmcurl/CMakeLists.txt
+++ b/Utilities/cmcurl/CMakeLists.txt
@@ -43,6 +43,14 @@ if(WIN32)
set(HAVE_INET_PTON 0 CACHE INTERNAL "Do not use inet_pton")
endif()
+# Starting with OSX 10.11 there is an unrelated libnetwork library which will
+# be picked up during curl configuration. Linking against this library is
+# unnecessary and breaks backward compatibility of the resulting binaries
+# because libnetwork is unavailable on older OSX versions.
+if(APPLE)
+ set(HAVE_LIBNETWORK 0 CACHE INTERNAL "Do not use libnetwork")
+endif(APPLE)
+
# Disable warnings to avoid changing 3rd party code.
if(CMAKE_C_COMPILER_ID MATCHES
"^(GNU|Clang|AppleClang|XL|VisualAge|SunPro|MIPSpro|HP|Intel)$")