cmake: use add_feature_info for libdisplayinfo

That allows cmake to print proper output when dependency is not found.
This commit is contained in:
Bhushan Shah 2023-07-16 12:34:03 +05:30 committed by Bhushan Shah
parent 969de1421f
commit 5eec4cdb52

View file

@ -353,7 +353,8 @@ set_package_properties(QAccessibilityClient6 PROPERTIES
set(HAVE_ACCESSIBILITY ${QAccessibilityClient6_FOUND}) set(HAVE_ACCESSIBILITY ${QAccessibilityClient6_FOUND})
find_package(KGlobalAccelD REQUIRED) 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 2.3)
ecm_find_qmlmodule(QtQuick.Controls 2.15) ecm_find_qmlmodule(QtQuick.Controls 2.15)