Fix build with Debian/Ubuntu
Support older pkg-config naming of libdisplay-info
This commit is contained in:
parent
4cb665dd08
commit
08d5dc27d0
1 changed files with 4 additions and 1 deletions
|
@ -353,7 +353,10 @@ set_package_properties(QAccessibilityClient6 PROPERTIES
|
|||
set(HAVE_ACCESSIBILITY ${QAccessibilityClient6_FOUND})
|
||||
|
||||
find_package(KGlobalAccelD REQUIRED)
|
||||
pkg_check_modules(libdisplayinfo REQUIRED IMPORTED_TARGET libdisplay-info)
|
||||
pkg_check_modules(libdisplayinfo IMPORTED_TARGET display-info)
|
||||
if (NOT libdisplayinfo_FOUND)
|
||||
pkg_check_modules(libdisplayinfo REQUIRED IMPORTED_TARGET libdisplay-info)
|
||||
endif()
|
||||
add_feature_info(libdisplayinfo libdisplayinfo_FOUND "EDID and DisplayID library: https://gitlab.freedesktop.org/emersion/libdisplay-info")
|
||||
|
||||
ecm_find_qmlmodule(QtQuick 2.3)
|
||||
|
|
Loading…
Reference in a new issue