From 281e2da7f14eca57104dbd3f7da39506011729a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 12 Jan 2020 15:45:34 +0100 Subject: Fix building with avahi support + Avahi detection was not performed at all + Added missing avahi-client detection + Fixed FTBFS in avahi related code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- CMakeLists.txt | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index a35aa8bf1..36a7e80fb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1096,16 +1096,15 @@ endif( WITH_LUA ) ##### check for avahi ########################### if( WITH_AVAHI ) - if( WITH_QT4 ) - endif( WITH_QT4 ) - - if( WITH_QT3 ) - pkg_search_module( AVAHI avahi-tqt ) - if( NOT AVAHI_FOUND ) - message(FATAL_ERROR "\navahi support are requested, but not found on your system" ) - endif( NOT AVAHI_FOUND ) - set( AVAHI_API_0_6 1 ) - endif( WITH_QT3 ) + pkg_search_module( AVAHI_TQT avahi-tqt ) + pkg_search_module( AVAHI_CLIENT avahi-client ) + if( NOT AVAHI_TQT_FOUND OR NOT AVAHI_CLIENT_FOUND ) + tde_message_fatal( "avahi support is requested, but not found on your system" ) + endif( NOT AVAHI_TQT_FOUND OR NOT AVAHI_CLIENT_FOUND ) + if( NOT AVAHI_CLIENT_VERSION VERSION_LESS "0.6" ) + set( AVAHI_API_0_6 1 ) + endif( ) + set( HAVE_DNSSD 1 ) endif( ) -- cgit v1.2.1