SDL: hidapi: minor sync with mainstream (for sake of symmetry, only.)

From 26e3ca7387e7f477a173e3a35c8457a8df6a4bc1 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Tue, 5 Mar 2024 14:33:06 +0300
Subject: [PATCH] hidapi: minor sync with mainstream (for sake of symmetry,
 only.)

---
 src/hidapi/BUILD.cmake.md                                | 2 +-
 src/hidapi/CMakeLists.txt                                | 2 +-
 src/hidapi/hidtest/CMakeLists.txt                        | 2 +-
 src/hidapi/libusb/CMakeLists.txt                         | 2 +-
 src/hidapi/linux/CMakeLists.txt                          | 2 +-
 src/hidapi/mac/CMakeLists.txt                            | 2 +-
 src/hidapi/netbsd/CMakeLists.txt                         | 2 +-
 src/hidapi/subprojects/hidapi_build_cmake/CMakeLists.txt | 2 +-
 8 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/hidapi/BUILD.cmake.md b/src/hidapi/BUILD.cmake.md
index 5555fd2ea6a63..573f910dec030 100644
--- a/src/hidapi/BUILD.cmake.md
+++ b/src/hidapi/BUILD.cmake.md
@@ -159,7 +159,7 @@ endif()
 HIDAPI can be easily used as a subdirectory of a larger CMake project:
 ```cmake
 # root CMakeLists.txt
-cmake_minimum_required(VERSION 3.4.3 FATAL_ERROR)
+cmake_minimum_required(VERSION 3.4.3...3.25 FATAL_ERROR)
 
 add_subdirectory(hidapi)
 add_subdirectory(my_application)
diff --git a/src/hidapi/CMakeLists.txt b/src/hidapi/CMakeLists.txt
index b4c99be51cc52..d7086813cdf82 100644
--- a/src/hidapi/CMakeLists.txt
+++ b/src/hidapi/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.1.3 FATAL_ERROR)
+cmake_minimum_required(VERSION 3.1.3...3.25 FATAL_ERROR)
 
 if(NOT CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
     add_subdirectory(src)
diff --git a/src/hidapi/hidtest/CMakeLists.txt b/src/hidapi/hidtest/CMakeLists.txt
index 701a4fb9110e0..19c50e1fb52f8 100644
--- a/src/hidapi/hidtest/CMakeLists.txt
+++ b/src/hidapi/hidtest/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.1.3 FATAL_ERROR)
+cmake_minimum_required(VERSION 3.1.3...3.25 FATAL_ERROR)
 project(hidtest C)
 
 if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
diff --git a/src/hidapi/libusb/CMakeLists.txt b/src/hidapi/libusb/CMakeLists.txt
index 617cd551a159b..4c458c5690a6b 100644
--- a/src/hidapi/libusb/CMakeLists.txt
+++ b/src/hidapi/libusb/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.6.3 FATAL_ERROR)
+cmake_minimum_required(VERSION 3.6.3...3.25 FATAL_ERROR)
 
 list(APPEND HIDAPI_PUBLIC_HEADERS "hidapi_libusb.h")
 
diff --git a/src/hidapi/linux/CMakeLists.txt b/src/hidapi/linux/CMakeLists.txt
index 0970ac3f1cfaa..9c627087f1546 100644
--- a/src/hidapi/linux/CMakeLists.txt
+++ b/src/hidapi/linux/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.6.3 FATAL_ERROR)
+cmake_minimum_required(VERSION 3.6.3...3.25 FATAL_ERROR)
 
 add_library(hidapi_hidraw
     ${HIDAPI_PUBLIC_HEADERS}
diff --git a/src/hidapi/mac/CMakeLists.txt b/src/hidapi/mac/CMakeLists.txt
index ccb0b91d43f37..0a1c1d95b6366 100644
--- a/src/hidapi/mac/CMakeLists.txt
+++ b/src/hidapi/mac/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.4.3 FATAL_ERROR)
+cmake_minimum_required(VERSION 3.4.3...3.25 FATAL_ERROR)
 
 list(APPEND HIDAPI_PUBLIC_HEADERS "hidapi_darwin.h")
 
diff --git a/src/hidapi/netbsd/CMakeLists.txt b/src/hidapi/netbsd/CMakeLists.txt
index 86067f895fd87..3b3e4d049bfb4 100644
--- a/src/hidapi/netbsd/CMakeLists.txt
+++ b/src/hidapi/netbsd/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.6.3 FATAL_ERROR)
+cmake_minimum_required(VERSION 3.6.3...3.25 FATAL_ERROR)
 
 add_library(hidapi_netbsd
     ${HIDAPI_PUBLIC_HEADERS}
diff --git a/src/hidapi/subprojects/hidapi_build_cmake/CMakeLists.txt b/src/hidapi/subprojects/hidapi_build_cmake/CMakeLists.txt
index 80aed67d556d5..4586ce6a6e20b 100644
--- a/src/hidapi/subprojects/hidapi_build_cmake/CMakeLists.txt
+++ b/src/hidapi/subprojects/hidapi_build_cmake/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.1.3 FATAL_ERROR)
+cmake_minimum_required(VERSION 3.1.3...3.25 FATAL_ERROR)
 project(hidapi LANGUAGES C)
 
 file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/root")