diff --git a/Modules/FindX11.cmake b/Modules/FindX11.cmake index d72a4f6c6..05e4d5937 100644 --- a/Modules/FindX11.cmake +++ b/Modules/FindX11.cmake @@ -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)