Skip to content

Commit 1f7026e

Browse files
Daniel Gröberry
authored andcommitted
cmake: add -lutil
1 parent d75c338 commit 1f7026e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

cmake/libs.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ find_library(RT rt)
1313
find_library(DL dl)
1414
check_library_exists(socket socket "" HAVE_SOCKET_LIB)
1515
check_library_exists(nsl gethostbyname "" HAVE_NSL_LIB)
16+
check_library_exists(util openpty "" HAVE_UTIL_LIB)
1617

1718
if(RT)
1819
set(extra_libs ${extra_libs} ${RT})
@@ -35,6 +36,10 @@ if(${HAVE_NSL_LIB})
3536
set(extra_libs ${extra_libs} nsl)
3637
endif()
3738

39+
if(HAVE_UTIL_LIB)
40+
set(extra_libs ${extra_libs} util)
41+
endif()
42+
3843
if(${OPENSSL_FOUND} MATCHES True)
3944
add_definitions(-DHAVE_OPENSSL=1)
4045
set(HAVE_OPENSSL True)

0 commit comments

Comments
 (0)