fix for nsl library and X11
This commit is contained in:
parent
e0671aba94
commit
09b9a38ff3
|
@ -14,7 +14,6 @@ CHECK_FUNCTION_EXISTS(connect CMAKE_HAVE_CONNECT)
|
||||||
CHECK_FUNCTION_EXISTS(remove CMAKE_HAVE_REMOVE)
|
CHECK_FUNCTION_EXISTS(remove CMAKE_HAVE_REMOVE)
|
||||||
|
|
||||||
INCLUDE (${CMAKE_ROOT}/Modules/CheckLibraryExists.cmake)
|
INCLUDE (${CMAKE_ROOT}/Modules/CheckLibraryExists.cmake)
|
||||||
CHECK_LIBRARY_EXISTS("nsl" "gethostbyname" "" CMAKE_HAVE_GETHOSTBYNAME)
|
|
||||||
CHECK_LIBRARY_EXISTS("ipc" "shmat" "" CMAKE_HAVE_GETHOSTBYNAME)
|
CHECK_LIBRARY_EXISTS("ipc" "shmat" "" CMAKE_HAVE_GETHOSTBYNAME)
|
||||||
|
|
||||||
INCLUDE (${CMAKE_ROOT}/Modules/CheckIncludeFile.cmake)
|
INCLUDE (${CMAKE_ROOT}/Modules/CheckIncludeFile.cmake)
|
||||||
|
|
|
@ -89,6 +89,10 @@ IF (UNIX)
|
||||||
ENDIF(CMAKE_X11_INCLUDE_PATH)
|
ENDIF(CMAKE_X11_INCLUDE_PATH)
|
||||||
IF(CMAKE_HAS_X)
|
IF(CMAKE_HAS_X)
|
||||||
INCLUDE (${CMAKE_ROOT}/Modules/CheckLibraryExists.cmake)
|
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")
|
||||||
|
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)
|
||||||
SET (CMAKE_X_EXTRA_LIBS "${CMAKE_X_EXTRA_LIBS};-lsocket")
|
SET (CMAKE_X_EXTRA_LIBS "${CMAKE_X_EXTRA_LIBS};-lsocket")
|
||||||
|
|
Loading…
Reference in New Issue