1 parent d75c338 commit 1f7026eCopy full SHA for 1f7026e
1 file changed
cmake/libs.cmake
@@ -13,6 +13,7 @@ find_library(RT rt)
13
find_library(DL dl)
14
check_library_exists(socket socket "" HAVE_SOCKET_LIB)
15
check_library_exists(nsl gethostbyname "" HAVE_NSL_LIB)
16
+check_library_exists(util openpty "" HAVE_UTIL_LIB)
17
18
if(RT)
19
set(extra_libs ${extra_libs} ${RT})
@@ -35,6 +36,10 @@ if(${HAVE_NSL_LIB})
35
36
set(extra_libs ${extra_libs} nsl)
37
endif()
38
39
+if(HAVE_UTIL_LIB)
40
+ set(extra_libs ${extra_libs} util)
41
+endif()
42
+
43
if(${OPENSSL_FOUND} MATCHES True)
44
add_definitions(-DHAVE_OPENSSL=1)
45
set(HAVE_OPENSSL True)
0 commit comments