Skip to content

Commit 8ae0d3a

Browse files
committed
Seek Wayland protocols definitions in a system-wide location first
If not found, fallback to vendored ones.
1 parent b62ddcf commit 8ae0d3a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

external/qt/package.cmake

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,18 @@ if (LINUX)
5757
target_include_directories(${target} PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
5858
endfunction()
5959
endif()
60+
61+
find_package(WaylandProtocols QUIET)
62+
if (NOT WaylandProtocols_FOUND)
63+
set(WaylandProtocols_DATADIR ${third_party_loc}/wayland-protocols)
64+
endif()
65+
message(STATUS "Found WaylandProtocols: ${WaylandProtocols_DATADIR}")
66+
67+
find_package(PlasmaWaylandProtocols QUIET)
68+
if (NOT PlasmaWaylandProtocols_FOUND)
69+
set(PLASMA_WAYLAND_PROTOCOLS_DIR ${third_party_loc}/plasma-wayland-protocols/src/protocols)
70+
endif()
71+
message(STATUS "Found PlasmaWaylandProtocols: ${PLASMA_WAYLAND_PROTOCOLS_DIR}")
6072
endif()
6173

6274
if ((NOT DESKTOP_APP_USE_PACKAGED

0 commit comments

Comments
 (0)