--- /dev/null
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -3,7 +3,7 @@
+ # and many OpenWRT packages require, much newer CMake packages.
+ # We're stopping before 3.10 because that version starts requiring
+ # c++11, which isn't available on e.g HPUX.
+-cmake_minimum_required(VERSION 3.9...3.12)
++cmake_minimum_required(VERSION 3.10)
+
+ # JSON-C library is C only project.
+ # PROJECT_VERSION{,_MAJOR,_MINOR,_PATCH} set by project():
+--- a/apps/CMakeLists.txt
++++ b/apps/CMakeLists.txt
+@@ -1,5 +1,5 @@
+
+-cmake_minimum_required(VERSION 2.8) # see ../CMakeLists.txt for why 2.8
++cmake_minimum_required(VERSION 3.10)
+
+ if(POLICY CMP0075)
+ cmake_policy(SET CMP0075 NEW)