waylandpp: fix build with cmake 4

Add a backport patch that fixes build with cmake 4

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Markus Volk 2025-07-09 20:12:56 +02:00 committed by Khem Raj
parent 95bec3d58a
commit 77a7925a84
No known key found for this signature in database
GPG Key ID: BB053355919D3314
2 changed files with 28 additions and 2 deletions

View File

@ -0,0 +1,23 @@
From 4576426020932ebc481ae35c15f644af2f17e88a Mon Sep 17 00:00:00 2001
From: Alexey Sokolov <alexey@asokolov.org>
Date: Sun, 4 May 2025 14:38:52 +0100
Subject: [PATCH] Fix build with cmake 4
Upstream-Status: Backport
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 866477b..8e9d2ad 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -21,7 +21,7 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-cmake_minimum_required(VERSION 3.4)
+cmake_minimum_required(VERSION 3.4...4.0)
project(waylandpp VERSION 1.0.0 LANGUAGES CXX)
# packages

View File

@ -2,8 +2,11 @@ SUMMARY = " C++ binding for Wayland using the most modern C++ technology"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3aae28cc66d61975114c2b14df215407"
SRC_URI = "git://github.com/NilsBrause/waylandpp.git;protocol=https;branch=master \
file://0001-include-missing-cstdint.patch"
SRC_URI = " \
git://github.com/NilsBrause/waylandpp.git;protocol=https;branch=master \
file://0001-include-missing-cstdint.patch \
file://4576426020932ebc481ae35c15f644af2f17e88a.patch \
"
DEPENDS = "pugixml"
DEPENDS:append:class-target = " waylandpp-native wayland virtual/egl virtual/libgles2"