Skip to content

Commit

Permalink
Seek Wayland protocols definitions in a system-wide location first
Browse files Browse the repository at this point in the history
If not found, fallback to vendored ones.
  • Loading branch information
mymedia2 committed Aug 13, 2022
1 parent d04afe5 commit 3d99342
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions external/qt/package.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,18 @@ if (LINUX)
target_include_directories(${target} PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
endfunction()
endif()

find_package(WaylandProtocols QUIET)
if (NOT WaylandProtocols_FOUND)
set(WaylandProtocols_DATADIR ${third_party_loc}/wayland-protocols)
endif()
message(STATUS "Found WaylandProtocols: ${WaylandProtocols_DATADIR}")

find_package(PlasmaWaylandProtocols QUIET)
if (NOT PlasmaWaylandProtocols_FOUND)
set(PLASMA_WAYLAND_PROTOCOLS_DIR ${third_party_loc}/plasma-wayland-protocols/src/protocols)
endif()
message(STATUS "Found PlasmaWaylandProtocols: ${PLASMA_WAYLAND_PROTOCOLS_DIR}")
endif()

if ((NOT DESKTOP_APP_USE_PACKAGED
Expand Down

0 comments on commit 3d99342

Please sign in to comment.