Skip to content

Commit 842a729

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

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
@@ -60,6 +60,18 @@ if (LINUX)
6060
target_include_directories(${target} PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
6161
endfunction()
6262
endif()
63+
64+
find_package(WaylandProtocols QUIET)
65+
if (NOT WaylandProtocols_FOUND)
66+
set(WaylandProtocols_DATADIR ${third_party_loc}/wayland-protocols)
67+
endif()
68+
message(STATUS "Found WaylandProtocols: ${WaylandProtocols_DATADIR}")
69+
70+
find_package(PlasmaWaylandProtocols QUIET)
71+
if (NOT PlasmaWaylandProtocols_FOUND)
72+
set(PLASMA_WAYLAND_PROTOCOLS_DIR ${third_party_loc}/plasma-wayland-protocols/src/protocols)
73+
endif()
74+
message(STATUS "Found PlasmaWaylandProtocols: ${PLASMA_WAYLAND_PROTOCOLS_DIR}")
6375
endif()
6476

6577
if ((NOT DESKTOP_APP_USE_PACKAGED

0 commit comments

Comments
 (0)