fix for nsl library and X11

This commit is contained in:
Bill Hoffman 2002-11-13 11:49:33 -05:00
parent 09b9a38ff3
commit fce9bf48c5
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ IF (UNIX)
INCLUDE (${CMAKE_ROOT}/Modules/CheckLibraryExists.cmake)
CHECK_LIBRARY_EXISTS("nsl" "gethostbyname" "" CMAKE_HAVE_GETHOSTBYNAME)
IF (CMAKE_HAVE_GETHOSTBYNAME)
SET (CMAKE_X_EXTRA_LIBS "${CMAKE_X_EXTRA_LIBS};-nsl")
SET (CMAKE_X_EXTRA_LIBS "${CMAKE_X_EXTRA_LIBS};-lnsl")
ENDIF (CMAKE_HAVE_GETHOSTBYNAME)
CHECK_LIBRARY_EXISTS("socket" "connect" "" CMAKE_HAVE_SOCKET_LIBRARY)
IF (CMAKE_HAVE_SOCKET_LIBRARY)