From 02053569051b8f5d58b386ff8be733df31ad04e7 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Fri, 2 Jan 2026 17:38:16 +0100 Subject: [PATCH] package/lensfun: fix build with cmake 4 Fixes: https://autobuild.buildroot.net/results/dce/dced550d78ca4365c6b334d442a4995d6b8dec46/ Signed-off-by: Bernd Kuhls Signed-off-by: Thomas Petazzoni --- package/lensfun/0001-cmake4.patch | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 package/lensfun/0001-cmake4.patch diff --git a/package/lensfun/0001-cmake4.patch b/package/lensfun/0001-cmake4.patch new file mode 100644 index 0000000000..d7973f4cb7 --- /dev/null +++ b/package/lensfun/0001-cmake4.patch @@ -0,0 +1,29 @@ +From 011de2e85813ff496a85404b30891352555de077 Mon Sep 17 00:00:00 2001 +From: Jonas +Date: Fri, 17 Feb 2023 18:26:01 +0100 +Subject: [PATCH] cmake: use FindPython3 (#1983) + +@jonas-ott Thank you for contributing! + +Upstream: https://github.com/lensfun/lensfun/commit/011de2e85813ff496a85404b30891352555de077 + +[Bernd: partial backport to version 0.3.4] +Signed-off-by: Bernd Kuhls +--- + CMakeLists.txt | 4 ++-- + apps/CMakeLists.txt | 55 +++++++++++++++++++++----------------------- + tests/CMakeLists.txt | 4 ++-- + 3 files changed, 30 insertions(+), 33 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 5ccb9976d..7bb7a6878 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,5 +1,5 @@ +-# require at least cmake 2.8.12 +-CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12 FATAL_ERROR ) ++# require at least cmake 3.12 ++CMAKE_MINIMUM_REQUIRED(VERSION 3.12 FATAL_ERROR) + + # path for helper modules + set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}" "${CMAKE_SOURCE_DIR}/cmake/modules")