From d29711322c98c6ed535208deffb82d8e23d433df Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Sun, 7 Dec 2025 15:26:45 +0100 Subject: [PATCH] package/lugaru: fix cmake 4 compatibility Signed-off-by: Bernd Kuhls Signed-off-by: Julien Olivain --- ...003-Revert-Set-CMP0004-policy-to-OLD.patch | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 package/lugaru/0003-Revert-Set-CMP0004-policy-to-OLD.patch diff --git a/package/lugaru/0003-Revert-Set-CMP0004-policy-to-OLD.patch b/package/lugaru/0003-Revert-Set-CMP0004-policy-to-OLD.patch new file mode 100644 index 0000000000..a8359f9e69 --- /dev/null +++ b/package/lugaru/0003-Revert-Set-CMP0004-policy-to-OLD.patch @@ -0,0 +1,31 @@ +From 165a34a5ca8a712be405fefffcccdb5845f230e3 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= +Date: Sat, 7 Jul 2018 11:52:28 +0200 +Subject: [PATCH] Revert "Set CMP0004 policy to OLD" + +This reverts commit b461f4a69c17073d5c576d24e48b1b59c0d3c932. +The workaround is no longer needed with SDL 2.0.5+, which is shipped +in all distros we support (including Debian Stable and RHEL 7). + +Fixes #99. + +Upstream: https://github.com/osslugaru/lugaru/commit/165a34a5ca8a712be405fefffcccdb5845f230e3 + +Signed-off-by: Bernd Kuhls +--- + CMakeLists.txt | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 29141271..3973d362 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,7 +1,6 @@ + project(lugaru) + +-cmake_minimum_required(VERSION 3.0) +-cmake_policy(SET CMP0004 OLD) ++cmake_minimum_required(VERSION 3.5) + + include(FindPkgConfig) + include(GNUInstallDirs)