git: 8612a87730da - main - x11-themes/qtcurve*: Fix building with CMake 4

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Sun, 27 Sep 2026 10:20:11 UTC
The branch main has been updated by arrowd:

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

commit 8612a87730da3bccdf937e174f20c6229f087db6
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2026-09-27 10:18:35 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2026-09-27 10:18:35 +0000

    x11-themes/qtcurve*: Fix building with CMake 4
    
    Approved by:    portmgr (fixit blanket)
---
 x11-themes/qtcurve/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/x11-themes/qtcurve/Makefile b/x11-themes/qtcurve/Makefile
index 88aad456cb32..d827b62467f5 100644
--- a/x11-themes/qtcurve/Makefile
+++ b/x11-themes/qtcurve/Makefile
@@ -43,7 +43,8 @@ CMAKE_ARGS+=	-DENABLE_GTK2=${WITH_gtk2} \
 		-DENABLE_QT4=Off \
 		-DENABLE_QT5=${WITH_qt5} \
 		-DQTC_QT4_ENABLE_KDE=Off \
-		-DQTC_QT5_ENABLE_KDE=${WITH_kf5}
+		-DQTC_QT5_ENABLE_KDE=${WITH_kf5} \
+		-DCMAKE_POLICY_VERSION_MINIMUM=3.5
 LDFLAGS+=	-L${LOCALBASE}/lib
 
 BUILD_WRKSRC=	${WRKSRC}/${QTCURVE_SLAVE}