1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

Add option to deactivate searching for gnome keyring

Summary:
The current cmake files search for gnome keyring unconditionally, which
on source-based distros would lead to a hard dependency on the package.
Hence, it would be a good idea to introduce an option to deactivate this
if necessary.

Reviewers: #falkon, drosca

Reviewed By: #falkon, drosca

Subscribers: heikobecker, drosca

Differential Revision: https://phabricator.kde.org/D8038
This commit is contained in:
Heiko Becker 2017-10-01 12:33:43 +02:00
parent 91ca81df0e
commit 75bd63ff2d

View File

@ -87,7 +87,10 @@ endif()
# Optional: GnomeKeyring
find_package(PkgConfig)
if (PKG_CONFIG_FOUND)
pkg_check_modules(GNOME_KEYRING gnome-keyring-1)
option(BUILD_KEYRING "Gnome keyring password plugin" ON)
if (BUILD_KEYRING)
pkg_check_modules(GNOME_KEYRING gnome-keyring-1)
endif()
endif()
# Optional: KWallet