Source: https://aur.archlinux.org/cgit/aur.git/commit/cmake_min_version.patch?h=libgaminggear

diff -aur a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt	2025-05-20 21:15:11.039131000 +0200
+++ b/CMakeLists.txt	2025-05-20 21:12:28.666031016 +0200
@@ -1,7 +1,4 @@
-CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
-IF(POLICY CMP0022)
-  CMAKE_POLICY(SET CMP0022 OLD)
-ENDIF()
+CMAKE_MINIMUM_REQUIRED(VERSION 3.5)
 
 PROJECT(libgaminggear C)

