diff --git a/CMakeLists.txt b/CMakeLists.txt index 4b195eb08..a137a1511 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -265,6 +265,7 @@ if(WITH_NETWORK_BACKEND) elseif(AVAHI_CLIENT_LIBRARIES AND AVAHI_COMMON_LIBRARIES) message(STATUS "Building with Avahi, a DNS SD implementation") set(HAVE_DNS_SD ON) + set(HAVE_AVAHI ON) list(APPEND LIBIIO_CFILES dns_sd_avahi.c) set(AVAHI_LIBRARIES ${AVAHI_CLIENT_LIBRARIES} ${AVAHI_COMMON_LIBRARIES})