sdl2-compat: cmake: bump CMake compatibility version

From 7079267082f25453283fcc749530ed727a3201b9 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Tue, 21 Jan 2025 20:30:57 +0100
Subject: [PATCH] cmake: bump CMake compatibility version

---
 CMakeLists.txt                                           | 2 +-
 build-scripts/pkg-support/msvc/cmake/SDL2Config.cmake.in | 2 +-
 cmake/test/CMakeLists.txt                                | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index cacb129..eb8a0e5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,7 +2,7 @@
 #        you can define SDL3_INCLUDE_DIRS on the cmdline.  For example:
 #        cmake -DSDL3_INCLUDE_DIRS=/opt/SDL3/include [other stuff ....]
 
-cmake_minimum_required(VERSION 3.0.0...3.10)
+cmake_minimum_required(VERSION 3.0...3.28)
 project(sdl2_compat VERSION 2.30.50 LANGUAGES C)
 
 if(POLICY CMP0074)
diff --git a/build-scripts/pkg-support/msvc/cmake/SDL2Config.cmake.in b/build-scripts/pkg-support/msvc/cmake/SDL2Config.cmake.in
index 0a7b906..e8609fb 100644
--- a/build-scripts/pkg-support/msvc/cmake/SDL2Config.cmake.in
+++ b/build-scripts/pkg-support/msvc/cmake/SDL2Config.cmake.in
@@ -1,7 +1,7 @@
 # @<@PROJECT_NAME@>@ CMake configuration file:
 # This file is meant to be placed in a cmake subfolder of @<@PROJECT_NAME@>@-devel-@<@PROJECT_VERSION@>@-VC.zip
 
-cmake_minimum_required(VERSION 3.0...3.5)
+cmake_minimum_required(VERSION 3.0...3.28)
 
 include(FeatureSummary)
 set_package_properties(SDL2 PROPERTIES
diff --git a/cmake/test/CMakeLists.txt b/cmake/test/CMakeLists.txt
index 92b552c..5100d2d 100644
--- a/cmake/test/CMakeLists.txt
+++ b/cmake/test/CMakeLists.txt
@@ -1,6 +1,6 @@
 # This cmake build script is meant for verifying the various CMake configuration script.
 
-cmake_minimum_required(VERSION 3.12)
+cmake_minimum_required(VERSION 3.12...3.28)
 project(sdl_test LANGUAGES C)
 
 include(GenerateExportHeader)