From f7a364b965def0b75f14b7216b034c55464dd147 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Tue, 26 Sep 2017 15:38:28 +0200 Subject: [PATCH] CMake: Add feature summary --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 66d566126..2dedb9924 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -92,7 +92,8 @@ endif() # Optional: KWallet set(KF5_MIN_VERSION "5.27.0") -find_package(KF5 ${KF5_MIN_VERSION} COMPONENTS Wallet) +find_package(KF5Wallet ${KF5_MIN_VERSION} CONFIG) +set_package_properties(KF5Wallet PROPERTIES DESCRIPTION "KWallet password backend plugin" TYPE OPTIONAL) # Git revision if (EXISTS "${CMAKE_SOURCE_DIR}/.git") @@ -140,3 +141,4 @@ include_directories( add_subdirectory(src) add_subdirectory(tests/autotests) +feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)