diff options
author | Jérôme Duval <jerome.duval@gmail.com> | 2017-06-26 07:26:03 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-06-28 08:41:49 -0400 |
commit | e7936751ee8e0ade7810df97434c985552cf8a7c (patch) | |
tree | fa03141c032ecf0977bdd32b22025de1d946fc3d /Utilities | |
parent | 8fe54172fcb37e39e0f7e506e575bdd8c7171e8d (diff) | |
download | cmake-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.txt | 2 |
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) |