From 6273a4300ee3538b3370e72438685bd6f57b9791 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 21 Mar 2011 06:49:42 +0000 Subject: [PATCH] Disable avahi-qt3 check under Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1225483 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- CMakeLists.txt | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 87201823a..de3701575 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -713,11 +713,16 @@ endif( WITH_LUA ) ##### check for avahi ########################### if( WITH_AVAHI ) - pkg_search_module( AVAHI avahi-qt3 ) - 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 ) + if( WITH_QT4 ) + endif( WITH_QT4 ) + + if( WITH_QT3 ) + pkg_search_module( AVAHI avahi-qt3 ) + 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 ) endif( ) ##### check for aspell ##########################