diff options
author | Raphael Kubo da Costa <rakuco@FreeBSD.org> | 2016-01-18 16:59:28 +0100 |
---|---|---|
committer | Raphael Kubo da Costa <rakuco@FreeBSD.org> | 2016-01-18 17:01:56 +0100 |
commit | 8ca0db36983e9154c808288fea4cbdfc9a7ea4c5 (patch) | |
tree | c3dd2f9d3939c77938af9264812286914cf1bcbd | |
parent | 88008bb028104de2669fb15f0f489beaad9c2fae (diff) | |
download | libproxy-git-8ca0db36983e9154c808288fea4cbdfc9a7ea4c5.tar.gz |
Make the KDE config module optional again.
This is a follow-up to bd9bf72 ("Add generic KDE config module"): make
it possible for distributions to not build the KDE config module at all,
even if it does not have any dependencies on Qt/KDE/KF5.
-rw-r--r-- | libproxy/cmake/modules/config_kde.cmk | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/libproxy/cmake/modules/config_kde.cmk b/libproxy/cmake/modules/config_kde.cmk index d0a66ef..56c14b8 100644 --- a/libproxy/cmake/modules/config_kde.cmk +++ b/libproxy/cmake/modules/config_kde.cmk @@ -1,6 +1,10 @@ -find_program(KDE4_CONF kreadconfig) -find_program(KF5_CONF kreadconfig5) +option(WITH_KDE "Build module to read proxy settings from KDE4/KF5" ON) -if (KDE4_CONF OR KF5_CONF) - set(KDE_FOUND 1) +if (WITH_KDE) + find_program(KDE4_CONF kreadconfig) + find_program(KF5_CONF kreadconfig5) + + if (KDE4_CONF OR KF5_CONF) + set(KDE_FOUND 1) + endif() endif() |