From fce9bf48c5e8825a8a61f046bbdb25029d669573 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Wed, 13 Nov 2002 11:49:33 -0500 Subject: [PATCH] fix for nsl library and X11 --- Modules/FindX11.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)