mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
27 lines
1.1 KiB
Diff
27 lines
1.1 KiB
Diff
From 2ee12e8ba3b306b7e8aa71695cbe0e2ff451cf3f Mon Sep 17 00:00:00 2001
|
|
From: SupervisedThinking <supervisedthinking@gmail.com>
|
|
Date: Tue, 23 Nov 2021 13:18:49 +0100
|
|
Subject: [PATCH] cmake/FindWaylandProtocols: fix wayland protocol path
|
|
generation for cross compile
|
|
|
|
---
|
|
cmake/FindWaylandProtocols.cmake | 5 +++--
|
|
1 file changed, 3 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/cmake/FindWaylandProtocols.cmake b/cmake/FindWaylandProtocols.cmake
|
|
index 17859ed7c..73d8548a7 100644
|
|
--- a/cmake/FindWaylandProtocols.cmake
|
|
+++ b/cmake/FindWaylandProtocols.cmake
|
|
@@ -6,8 +6,9 @@
|
|
|
|
if(NOT WIN32)
|
|
find_package(PkgConfig)
|
|
- pkg_check_modules(PKG_WAYLAND_PROTOCOLS QUIET wayland-protocols)
|
|
- set(WAYLAND_PROTOCOLS_PATH ${PKG_WAYLAND_PROTOCOLS_PREFIX}/share/wayland-protocols)
|
|
+ pkg_check_modules(WAYLAND_PROTOCOLS_PATH REQUIRED wayland-protocols)
|
|
+ execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} --variable=pkgdatadir wayland-protocols
|
|
+ OUTPUT_VARIABLE WAYLAND_PROTOCOLS_PATH OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
find_package_handle_standard_args(WAYLAND DEFAULT_MSG WAYLAND_PROTOCOLS_PATH)
|
|
mark_as_advanced(WAYLAND_PROTOCOLS_PATH)
|
|
endif()
|