From 9d5644f01f75cd4211195a3c8f67b5e36a1a2520 Mon Sep 17 00:00:00 2001 From: Albert Vaca Date: Mon, 6 Aug 2018 10:43:38 +0200 Subject: [PATCH] Don't search pulseaudio-qt on systems where it's not available --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 530b189d0..2513d76f8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,7 +24,10 @@ else() set(KF5_MIN_VERSION "5.42.0") set(QT_MIN_VERSION "5.7.0") set(KF5_REQUIRED_COMPONENTS I18n ConfigWidgets DBusAddons IconThemes Notifications KIO KCMUtils) - set(KF5_OPTIONAL_COMPONENTS DocTools PulseAudioQt) + set(KF5_OPTIONAL_COMPONENTS DocTools DocTools) + if(UNIX) + set(KF5_OPTIONAL_COMPONENTS ${KF5_OPTIONAL_COMPONENTS} PulseAudioQt) + endif() set(QCA_MIN_VERSION "2.1.0") find_package(Qca-qt5 ${QCA_MIN_VERSION} REQUIRED) add_definitions(-DQT_NO_URL_CAST_FROM_STRING -DQT_NO_KEYWORDS)