Skip to content

Commit

Permalink
Cmake : move HAVE_DNS_SD to iio-config.h
Browse files Browse the repository at this point in the history
the cmake settings needed by source should be in in
the iio-config.h not added to the CFLAGS

Signed-off-by: Robin Getz <[email protected]>
  • Loading branch information
rgetz committed Mar 13, 2020
1 parent 5247675 commit 9501cb9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -275,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 9501cb9

Please sign in to comment.