Skip to content

Commit

Permalink
Merge pull request #399 from analogdevicesinc/rgetz-fix-avahi
Browse files Browse the repository at this point in the history
Cmake: restore installing the Avahi service file
  • Loading branch information
rgetz authored Mar 16, 2020
2 parents 7d13885 + 9501cb9 commit 9c4a410
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 1 addition & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand All @@ -274,10 +275,6 @@ if(WITH_NETWORK_BACKEND)
message(STATUS "Building without DNS-SD (Zeroconf) support")
endif()

if (HAVE_DNS_SD)
add_definitions(-DHAVE_DNS_SD=1)
endif()

set(NEED_THREADS 1)
set(IIOD_CLIENT 1)
set(NEED_LIBXML2 1)
Expand Down
1 change: 1 addition & 0 deletions iio-config.h.cmakein
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#cmakedefine HAS_NEWLOCALE
#cmakedefine HAS_PTHREAD_SETNAME_NP
#cmakedefine HAVE_IPV6
#cmakedefine HAVE_DNS_SD
#cmakedefine HAVE_AVAHI
#cmakedefine NO_THREADS
#cmakedefine HAS_LIBUSB_GETVERSION
Expand Down

0 comments on commit 9c4a410

Please sign in to comment.