[cmake] build fix on Solaris

pull/151/head
Brad House 7 years ago
parent 9ef37fedc6
commit 5ecc4c34be
  1. 7
      CMakeLists.txt

@ -103,9 +103,10 @@ IF (IOS AND HAVE_LIBRESOLV)
ENDIF()
CHECK_LIBRARY_EXISTS (nsl gethostbyname "" HAVE_LIBNSL)
CHECK_LIBRARY_EXISTS (socket gethostbyname "" HAVE_LIBSOCKET)
IF (NOT HAVE_LIBSOCKET)
CHECK_LIBRARY_EXISTS (socket socket "" HAVE_LIBSOCKET)
CHECK_LIBRARY_EXISTS (socket gethostbyname "" HAVE_GHBN_LIBSOCKET)
CHECK_LIBRARY_EXISTS (socket socket "" HAVE_SOCKET_LIBSOCKET)
IF (HAVE_GHBN_LIBSOCKET OR HAVE_SOCKET_LIBSOCKET)
SET(HAVE_LIBSOCKET TRUE)
ENDIF ()
CHECK_LIBRARY_EXISTS (rt clock_gettime "" HAVE_LIBRT)

Loading…
Cancel
Save