Skip to content
This repository has been archived by the owner on Aug 12, 2021. It is now read-only.

Commit

Permalink
Fix build with Qt 5.15.2
Browse files Browse the repository at this point in the history
Make sure we link to Qt5::XkbCommonSupport which is used by
QtWaylandClient internally.

Closes: #11
  • Loading branch information
plfiorini committed Jan 31, 2021
1 parent d67f589 commit d420878
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Expand Up @@ -29,6 +29,11 @@ find_package(Qt5 "${QT_MIN_VERSION}"
Gui
WaylandClient
)
if(${Qt5_VERSION} VERSION_GREATER "5.15.1")
find_package(Qt5 "${QT_MIN_VERSION}"
CONFIG REQUIRED
COMPONENTS XkbCommonSupport)
endif()

## Add subdirectories:
add_subdirectory(src/plugins/decorations/material)
5 changes: 5 additions & 0 deletions src/plugins/decorations/material/CMakeLists.txt
Expand Up @@ -12,3 +12,8 @@ liri_add_plugin(materialdecoration
Qt5::WaylandClientPrivate
Wayland::Client
)

if(${Qt5_VERSION} VERSION_GREATER "5.15.1")
liri_extend_target("materialdecoration"
LIBRARIES Qt5::XkbCommonSupport)
endif()

0 comments on commit d420878

Please sign in to comment.