From 1f7026e2a0b6033595ff4c8e6e8098f6267935a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Gr=C3=B6ber?= Date: Sun, 5 Dec 2010 15:10:05 +0100 Subject: [PATCH] cmake: add -lutil --- cmake/libs.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/libs.cmake b/cmake/libs.cmake index 2844d86ac0..2317545529 100644 --- a/cmake/libs.cmake +++ b/cmake/libs.cmake @@ -13,6 +13,7 @@ find_library(RT rt) find_library(DL dl) check_library_exists(socket socket "" HAVE_SOCKET_LIB) check_library_exists(nsl gethostbyname "" HAVE_NSL_LIB) +check_library_exists(util openpty "" HAVE_UTIL_LIB) if(RT) set(extra_libs ${extra_libs} ${RT}) @@ -35,6 +36,10 @@ if(${HAVE_NSL_LIB}) set(extra_libs ${extra_libs} nsl) endif() +if(HAVE_UTIL_LIB) + set(extra_libs ${extra_libs} util) +endif() + if(${OPENSSL_FOUND} MATCHES True) add_definitions(-DHAVE_OPENSSL=1) set(HAVE_OPENSSL True)