kumquat-buildroot/package/libglfw/0002-src-CMakeLists.txt-allow-override-of-wayland-pkgdata.patch
Fabrice Fontaine 0bbb12eff3 package/libglfw: fix wayland build
Fix the following build failure raised since bump to version 3.3.6 in
commit 3cd9bb4f2a:

CMake Error at CMakeLists.txt:252 (find_package):
  Could not find a package configuration file provided by "ECM" with any of
  the following names:

    ECMConfig.cmake
    ecm-config.cmake

Fixes:
 - http://autobuild.buildroot.org/results/0d7420aff7392c294614fd12e65ac7cd57787e98

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2022-03-06 22:20:37 +01:00

33 lines
1.2 KiB
Diff

From 46aaf2b2b4d3ec240b9aad175bb3eddb6ae11ead Mon Sep 17 00:00:00 2001
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Date: Fri, 4 Mar 2022 17:59:19 +0100
Subject: [PATCH] src/CMakeLists.txt: allow override of wayland pkgdatadir
Allow the user to override WAYLAND_{PROTOCOLS_BASE,CLIENT_PKGDATADIR}
(needed when cross-compiling)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
[Upstream status: https://github.com/glfw/glfw/pull/2053]
---
src/CMakeLists.txt | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 01f191c9..475ce882 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -75,7 +75,9 @@ if (GLFW_BUILD_WAYLAND)
include(FindPkgConfig)
find_program(WAYLAND_SCANNER_EXECUTABLE NAMES wayland-scanner)
pkg_check_modules(WAYLAND_PROTOCOLS REQUIRED wayland-protocols>=1.15)
- pkg_get_variable(WAYLAND_PROTOCOLS_BASE wayland-protocols pkgdatadir)
+ if (NOT WAYLAND_PROTOCOLS_BASE)
+ pkg_get_variable(WAYLAND_PROTOCOLS_BASE wayland-protocols pkgdatadir)
+ endif()
macro(wayland_generate protocol_file output_file)
add_custom_command(OUTPUT "${output_file}.h"
--
2.34.1