fix for nsl library and X11
This commit is contained in:
parent
09b9a38ff3
commit
fce9bf48c5
|
@ -91,7 +91,7 @@ IF (UNIX)
|
||||||
INCLUDE (${CMAKE_ROOT}/Modules/CheckLibraryExists.cmake)
|
INCLUDE (${CMAKE_ROOT}/Modules/CheckLibraryExists.cmake)
|
||||||
CHECK_LIBRARY_EXISTS("nsl" "gethostbyname" "" CMAKE_HAVE_GETHOSTBYNAME)
|
CHECK_LIBRARY_EXISTS("nsl" "gethostbyname" "" CMAKE_HAVE_GETHOSTBYNAME)
|
||||||
IF (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)
|
ENDIF (CMAKE_HAVE_GETHOSTBYNAME)
|
||||||
CHECK_LIBRARY_EXISTS("socket" "connect" "" CMAKE_HAVE_SOCKET_LIBRARY)
|
CHECK_LIBRARY_EXISTS("socket" "connect" "" CMAKE_HAVE_SOCKET_LIBRARY)
|
||||||
IF (CMAKE_HAVE_SOCKET_LIBRARY)
|
IF (CMAKE_HAVE_SOCKET_LIBRARY)
|
||||||
|
|
Loading…
Reference in New Issue