File 0001-cmake-minimum-required.patch of Package libyuv
From 3a24e2d9d396512ce1e088422104db2ec825e6a4 Mon Sep 17 00:00:00 2001
From: JS <obs.coke518@passinbox.com>
Date: Sun, 29 Dec 2024 19:38:21 +0800
Subject: [PATCH] cmake-minimum-required
Old cmake versions had bugs when linking executables (namely incorrectly adding -rdynamic on commandline).
This adds runtime bloat and is bad packaging practice.
Cmake defaults to this buggy behaviour for compatibility reasons if the script claims it is written for an old version.
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 622a2e0..3dfd430 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,8 +4,8 @@
include(CheckCSourceCompiles)
+CMAKE_MINIMUM_REQUIRED( VERSION 3.7.1 )
project ( YUV C CXX ) # "C" is required even for C++ projects
-cmake_minimum_required( VERSION 2.8.12 )
option( UNIT_TEST "Built unit tests" OFF )
set ( ly_base_dir ${PROJECT_SOURCE_DIR} )
--
2.47.1