libuecc: backport patch for cmake 4.x compatibility

Backport upstream patch for cmake 4.x compatibility.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
This commit is contained in:
Hannu Nyman
2025-11-09 18:44:05 +02:00
parent d93b437631
commit 937c149531
2 changed files with 27 additions and 1 deletions

View File

@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=libuecc PKG_NAME:=libuecc
PKG_VERSION:=7 PKG_VERSION:=7
PKG_RELEASE:=2 PKG_RELEASE:=3
PKG_MAINTAINER:=Matthias Schiffer <mschiffer@universe-factory.net> PKG_MAINTAINER:=Matthias Schiffer <mschiffer@universe-factory.net>
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz

View File

@@ -0,0 +1,26 @@
From b3812bf5ab1777193c4b85863311c33997d141f9 Mon Sep 17 00:00:00 2001
From: Sven Eckelmann <sven@narfation.org>
Date: Mon, 1 Sep 2025 10:21:38 +0200
Subject: [PATCH] Fix build with CMake 4
CMake 4 dropped support for policies which were introduced before version
3.5. Trying to build uisng cmake 4 results in:
...
Just increasing minimum version to 3.18 (from 2020-07-15) fixes this
problem. This version is low enough to still support Debian bullseye or
Ubuntu 22.04.
...
Fixes: #1
Signed-off-by: Sven Eckelmann <sven@narfation.org>
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 2.6)
+cmake_minimum_required(VERSION 3.18)
project(LIBUECC C)
set(PROJECT_VERSION 7)