git: f138021fc3a6 - main - archivers/lzfse: Fix build with CMake 4

From: Steven Kreuzer <skreuzer_at_FreeBSD.org>
Date: Thu, 01 Oct 2026 01:13:03 UTC
The branch main has been updated by skreuzer:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f138021fc3a6d5748d9528b5b857cf2b9d0467a9

commit f138021fc3a6d5748d9528b5b857cf2b9d0467a9
Author:     Steven Kreuzer <skreuzer@FreeBSD.org>
AuthorDate: 2026-09-20 15:41:09 +0000
Commit:     Steven Kreuzer <skreuzer@FreeBSD.org>
CommitDate: 2026-10-01 01:12:41 +0000

    archivers/lzfse: Fix build with CMake 4
    
    Bump cmake_minimum_required() from 2.8.6 to 3.5; compatibility with
    versions below 3.5 has been removed in CMake 4.  Also move the call
    before project().
    
    PR:             298638
---
 archivers/lzfse/files/patch-CMakeLists.txt | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/archivers/lzfse/files/patch-CMakeLists.txt b/archivers/lzfse/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..729edc198240
--- /dev/null
+++ b/archivers/lzfse/files/patch-CMakeLists.txt
@@ -0,0 +1,12 @@
+Fix build with CMake 4: compatibility with cmake_minimum_required()
+versions below 3.5 has been removed.  Bump the minimum to 3.5 and move
+the call before project() as CMake expects.
+
+--- CMakeLists.txt.orig	2017-03-08 22:48:59 UTC
++++ CMakeLists.txt
+@@ -1,5 +1,5 @@
++cmake_minimum_required(VERSION 3.5)
+ project(lzfse C)
+-cmake_minimum_required(VERSION 2.8.6)
+ 
+ include(CheckCCompilerFlag)