libmad: add compatibility with cmake 4.x

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 08:42:47 +02:00
parent 026302c6b2
commit 031906a2ce
2 changed files with 26 additions and 1 deletions

View File

@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=libmad
PKG_VERSION:=0.16.4
PKG_RELEASE:=3
PKG_RELEASE:=4
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=$(PKG_VERSION)

View File

@@ -0,0 +1,25 @@
From 326363f04e583b563f63941db3cf7f50e76aceb2 Mon Sep 17 00:00:00 2001
From: Be <be@mixxx.org>
Date: Wed, 14 Feb 2024 18:18:49 -0600
Subject: [PATCH] bump CMake minimum version to 3.5.0
to fix warning
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.1.0)
+cmake_minimum_required(VERSION 3.5.0)
project(mad VERSION 0.16.4)
option(BUILD_SHARED_LIBS "Build dynamic library" ON)