diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2013-07-24 07:54:11 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2013-07-24 07:54:11 +0200 |
commit | 90e5ce3c3e87e9a1b9c97bdc15bb8de5e575e2da (patch) | |
tree | e129a85113b7dce07d22cf73cee785d7d2cc8f99 /ConfigureChecks.cmake | |
parent | 448738eb00714d07da1bb7c5e480f0d797a8de91 (diff) | |
download | libssh-90e5ce3c3e87e9a1b9c97bdc15bb8de5e575e2da.tar.gz libssh-90e5ce3c3e87e9a1b9c97bdc15bb8de5e575e2da.tar.xz libssh-90e5ce3c3e87e9a1b9c97bdc15bb8de5e575e2da.zip |
cmake: Set HAVE_GETADDRINFO if we have libsocket.
This fixes the build on Solaris.
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 5364739a..3a023361 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -122,7 +122,8 @@ if (UNIX) # libsocket (Solaris) check_library_exists(socket getaddrinfo "" HAVE_LIBSOCKET) if (HAVE_LIBSOCKET) - set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} socket) + set(HAVE_GETADDRINFO 1) + set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} socket) endif (HAVE_LIBSOCKET) # libnsl/inet_pton (Solaris) |