From 81bd1b50678d8b1174e6c6abf3aab72e7ea5c9e9 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Thu, 25 Dec 2025 22:32:57 +0100 Subject: [PATCH] package/freerdp: fix build with CMake >= 4 freerdp upstream is now at 3.x, far far ahead of what we're using in Buildroot at the moment. So to fix the CMake >= 4 build, we add a very simple non-upstreamable patch (upstream 3.x has a much higher CMake minimum version already). Fixes: https://autobuild.buildroot.net/results/51365593ad059325e1164d36fff06905d1c6e8af/ Signed-off-by: Thomas Petazzoni Signed-off-by: Julien Olivain --- ...-update-minimum-CMake-version-to-3.5.patch | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 package/freerdp/0004-CMakeLists.txt-update-minimum-CMake-version-to-3.5.patch diff --git a/package/freerdp/0004-CMakeLists.txt-update-minimum-CMake-version-to-3.5.patch b/package/freerdp/0004-CMakeLists.txt-update-minimum-CMake-version-to-3.5.patch new file mode 100644 index 0000000000..5f8ad5175a --- /dev/null +++ b/package/freerdp/0004-CMakeLists.txt-update-minimum-CMake-version-to-3.5.patch @@ -0,0 +1,59 @@ +From 27f9300b55c483a9f2ff482833ee4fae01447c69 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni +Date: Thu, 25 Dec 2025 21:03:37 +0100 +Subject: [PATCH] CMakeLists.txt: update minimum CMake version to 3.5 + +This fixes the build with CMake >= 4. + +Upstream: N/A, upstream is at freerdp 3.x which already has a much +more recent cmake_minimum_required() [but the patches are too invasive +to be backport]. +Signed-off-by: Thomas Petazzoni +--- + CMakeLists.txt | 2 +- + rdtk/CMakeLists.txt | 2 +- + winpr/CMakeLists.txt | 2 +- + 3 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 3d4a5e515..0538d026c 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -18,7 +18,7 @@ + # See the License for the specific language governing permissions and + # limitations under the License. + +-cmake_minimum_required(VERSION 2.8) ++cmake_minimum_required(VERSION 3.5) + + project(FreeRDP C CXX) + +diff --git a/rdtk/CMakeLists.txt b/rdtk/CMakeLists.txt +index 764a545c2..389ad1db8 100644 +--- a/rdtk/CMakeLists.txt ++++ b/rdtk/CMakeLists.txt +@@ -15,7 +15,7 @@ + # See the License for the specific language governing permissions and + # limitations under the License. + +-cmake_minimum_required(VERSION 2.8) ++cmake_minimum_required(VERSION 3.5) + + project(RdTk C) + +diff --git a/winpr/CMakeLists.txt b/winpr/CMakeLists.txt +index 77ff23302..f5bffd644 100644 +--- a/winpr/CMakeLists.txt ++++ b/winpr/CMakeLists.txt +@@ -15,7 +15,7 @@ + # See the License for the specific language governing permissions and + # limitations under the License. + +-cmake_minimum_required(VERSION 2.8) ++cmake_minimum_required(VERSION 3.5) + + project(WinPR C) + +-- +2.52.0 + -- 2.43.0