summaryrefslogtreecommitdiff
path: root/Utilities
diff options
context:
space:
mode:
authorJérôme Duval <jerome.duval@gmail.com>2017-06-26 07:26:03 -0400
committerBrad King <brad.king@kitware.com>2017-06-28 08:41:49 -0400
commite7936751ee8e0ade7810df97434c985552cf8a7c (patch)
treefa03141c032ecf0977bdd32b22025de1d946fc3d /Utilities
parent8fe54172fcb37e39e0f7e506e575bdd8c7171e8d (diff)
downloadcmake-e7936751ee8e0ade7810df97434c985552cf8a7c.tar.gz
curl: Fix build on Haiku
On Haiku the network functions are in libnetwork, so use it when it exists.
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/cmcurl/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/Utilities/cmcurl/CMakeLists.txt b/Utilities/cmcurl/CMakeLists.txt
index 45ae3de027..d85f366c02 100644
--- a/Utilities/cmcurl/CMakeLists.txt
+++ b/Utilities/cmcurl/CMakeLists.txt
@@ -929,6 +929,8 @@ if(HAVE_LIBWS2_32)
set(CMAKE_REQUIRED_LIBRARIES ws2_32)
elseif(HAVE_LIBSOCKET)
set(CMAKE_REQUIRED_LIBRARIES socket)
+elseif(HAVE_LIBNETWORK)
+ set(CMAKE_REQUIRED_LIBRARIES network)
endif()
check_symbol_exists(basename "${CURL_INCLUDES}" HAVE_BASENAME)