Don't search pulseaudio-qt on systems where it's not available
This commit is contained in:
parent
3437fa5a39
commit
9d5644f01f
1 changed files with 4 additions and 1 deletions
|
@ -24,7 +24,10 @@ else()
|
||||||
set(KF5_MIN_VERSION "5.42.0")
|
set(KF5_MIN_VERSION "5.42.0")
|
||||||
set(QT_MIN_VERSION "5.7.0")
|
set(QT_MIN_VERSION "5.7.0")
|
||||||
set(KF5_REQUIRED_COMPONENTS I18n ConfigWidgets DBusAddons IconThemes Notifications KIO KCMUtils)
|
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")
|
set(QCA_MIN_VERSION "2.1.0")
|
||||||
find_package(Qca-qt5 ${QCA_MIN_VERSION} REQUIRED)
|
find_package(Qca-qt5 ${QCA_MIN_VERSION} REQUIRED)
|
||||||
add_definitions(-DQT_NO_URL_CAST_FROM_STRING -DQT_NO_KEYWORDS)
|
add_definitions(-DQT_NO_URL_CAST_FROM_STRING -DQT_NO_KEYWORDS)
|
||||||
|
|
Loading…
Reference in a new issue