diff --git a/cmake/re-config.cmake b/cmake/re-config.cmake index 426a79db4..09588550f 100644 --- a/cmake/re-config.cmake +++ b/cmake/re-config.cmake @@ -55,7 +55,7 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD") else() check_symbol_exists(res_ninit resolv.h HAVE_RESOLV) endif() -if(HAVE_RESOLV) +if(HAVE_RESOLV AND ${CMAKE_SYSTEM_NAME} NOT MATCHES "FreeBSD") set(RESOLV_LIBRARY resolv) list(APPEND RE_DEFINITIONS HAVE_RESOLV) else()