cmake: use add_feature_info for libdisplayinfo
That allows cmake to print proper output when dependency is not found.
This commit is contained in:
parent
969de1421f
commit
5eec4cdb52
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue