git: ac6905736e45 - main - devel/libgpkg: Fix build with CMake 4.0.0+

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 09 Nov 2026 14:44:32 UTC
The branch main has been updated by sunpoet:

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

commit ac6905736e458fd9beb3d28a462cc9f279f45dd1
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2026-11-09 13:52:42 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2026-11-09 14:17:10 +0000

    devel/libgpkg: Fix build with CMake 4.0.0+
    
    PR:             298471
    Reported by:    arrowd
---
 devel/libgpkg/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/devel/libgpkg/Makefile b/devel/libgpkg/Makefile
index 029b852b103b..cf2c7ea636ec 100644
--- a/devel/libgpkg/Makefile
+++ b/devel/libgpkg/Makefile
@@ -12,6 +12,7 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 USES=		cmake:insource compiler:c11 tar:bzip2
 
+CMAKE_ARGS=	-DCMAKE_POLICY_VERSION_MINIMUM=3.5
 USE_LDCONFIG=	yes
 
 PLIST_SUB=	PORTVERSION=${PORTVERSION}