mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 19:14:30 +04:00
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:
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=libmad
|
PKG_NAME:=libmad
|
||||||
PKG_VERSION:=0.16.4
|
PKG_VERSION:=0.16.4
|
||||||
PKG_RELEASE:=3
|
PKG_RELEASE:=4
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_VERSION:=$(PKG_VERSION)
|
PKG_SOURCE_VERSION:=$(PKG_VERSION)
|
||||||
|
|||||||
25
libs/libmad/patches/001-cmake4-support.patch
Normal file
25
libs/libmad/patches/001-cmake4-support.patch
Normal 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)
|
||||||
Reference in New Issue
Block a user