From 5eec4cdb52d0663e1f23e5c9dd16cf99791a6fc9 Mon Sep 17 00:00:00 2001 From: Bhushan Shah Date: Sun, 16 Jul 2023 12:34:03 +0530 Subject: [PATCH] cmake: use add_feature_info for libdisplayinfo That allows cmake to print proper output when dependency is not found. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7ce9dc6a87..6a1a8c59c4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -353,7 +353,8 @@ set_package_properties(QAccessibilityClient6 PROPERTIES set(HAVE_ACCESSIBILITY ${QAccessibilityClient6_FOUND}) find_package(KGlobalAccelD REQUIRED) -pkg_search_module(libdisplayinfo REQUIRED IMPORTED_TARGET libdisplay-info) +pkg_check_modules(libdisplayinfo REQUIRED IMPORTED_TARGET libdisplay-info) +add_feature_info(libdisplayinfo libdisplayinfo_FOUND "EDID and DisplayID library: https://gitlab.freedesktop.org/emersion/libdisplay-info") ecm_find_qmlmodule(QtQuick 2.3) ecm_find_qmlmodule(QtQuick.Controls 2.15)