1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 02:08:27 +08:00

curl: Fix build on Haiku

On Haiku the network functions are in libnetwork, so use it when it
exists.
This commit is contained in:
Jérôme Duval
2017-06-26 07:26:03 -04:00
committed by Brad King
parent 8fe54172fc
commit e7936751ee

View File

@@ -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)