diff options
author | Jérôme Duval <jerome.duval@gmail.com> | 2017-06-26 11:26:03 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-06-28 12:41:49 (GMT) |
commit | e7936751ee8e0ade7810df97434c985552cf8a7c (patch) | |
tree | fa03141c032ecf0977bdd32b22025de1d946fc3d | |
parent | 8fe54172fcb37e39e0f7e506e575bdd8c7171e8d (diff) | |
download | CMake-e7936751ee8e0ade7810df97434c985552cf8a7c.zip CMake-e7936751ee8e0ade7810df97434c985552cf8a7c.tar.gz CMake-e7936751ee8e0ade7810df97434c985552cf8a7c.tar.bz2 |
curl: Fix build on Haiku
On Haiku the network functions are in libnetwork, so use it when it
exists.
-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 45ae3de..d85f366 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) |