From 75bd63ff2d565a6678473fc8547881d20038f3c8 Mon Sep 17 00:00:00 2001 From: Heiko Becker Date: Sun, 1 Oct 2017 12:33:43 +0200 Subject: [PATCH] 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 --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2dedb9924..e7b56e10f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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