summaryrefslogtreecommitdiffstats
path: root/Modules/FindX11.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-11-13 16:49:33 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-11-13 16:49:33 (GMT)
commitfce9bf48c5e8825a8a61f046bbdb25029d669573 (patch)
tree87b0df374af4c8ee59525f69f17623c9da283a57 /Modules/FindX11.cmake
parent09b9a38ff32ad38dac3ed9001dfbb1720cf5e4b9 (diff)
downloadCMake-fce9bf48c5e8825a8a61f046bbdb25029d669573.zip
CMake-fce9bf48c5e8825a8a61f046bbdb25029d669573.tar.gz
CMake-fce9bf48c5e8825a8a61f046bbdb25029d669573.tar.bz2
fix for nsl library and X11
Diffstat (limited to 'Modules/FindX11.cmake')
-rw-r--r--Modules/FindX11.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindX11.cmake b/Modules/FindX11.cmake
index d72a4f6..05e4d59 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)