diff options
Diffstat (limited to 'src/ipcpd/shim-udp/CMakeLists.txt')
-rw-r--r-- | src/ipcpd/shim-udp/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ipcpd/shim-udp/CMakeLists.txt b/src/ipcpd/shim-udp/CMakeLists.txt index c63bd29c..3b740783 100644 --- a/src/ipcpd/shim-udp/CMakeLists.txt +++ b/src/ipcpd/shim-udp/CMakeLists.txt @@ -17,6 +17,7 @@ protobuf_generate_c(SHIM_UDP_PROTO_SRCS SHIM_UDP_PROTO_HDRS # Find library needed for gethostbyname. include(CheckFunctionExists) +include(CheckLibraryExists) CHECK_FUNCTION_EXISTS("gethostbyname" CMAKE_HAVE_GETHOSTBYNAME) IF(NOT CMAKE_HAVE_GETHOSTBYNAME) CHECK_LIBRARY_EXISTS("nsl" "gethostbyname" "" CMAKE_LIB_NSL_HAS_GETHOSTBYNAME) |