From 248c8fe51079f029d60f0cb329495f3f5a4ec5e4 Mon Sep 17 00:00:00 2001 From: Andreas Gnau Date: Wed, 17 Dec 2025 19:55:51 +0100 Subject: [PATCH] obudpst: fix compatibility with CMake 4 CMake 4 has dropped compatibility with old versions < 3.5, and will drop compatibility for < 3.10 in the future. Update the minimum required CMake version accordingly. Signed-off-by: Andreas Gnau --- ...cmake-fix-compatibility-with-CMake-4.patch | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 obudpst/patches/500-cmake-fix-compatibility-with-CMake-4.patch diff --git a/obudpst/patches/500-cmake-fix-compatibility-with-CMake-4.patch b/obudpst/patches/500-cmake-fix-compatibility-with-CMake-4.patch new file mode 100644 index 000000000..8b2feca6a --- /dev/null +++ b/obudpst/patches/500-cmake-fix-compatibility-with-CMake-4.patch @@ -0,0 +1,31 @@ +From dac144fb25e4aaaf4e965f066113dc265d0ee524 Mon Sep 17 00:00:00 2001 +From: Andreas Gnau +Date: Mon, 15 Dec 2025 09:02:10 +0100 +Subject: [PATCH] cmake: fix compatibility with CMake 4 + +CMake 4 has dropped compatibility with old versions < 3.5, and will drop +compatibility for < 3.10 in the future. Update the minimum required +CMake version accordingly so that both old and new versions will work. + +Upstream-Status: Submitted [https://github.com/BroadbandForum/obudpst/pull/23] +Signed-off-by: Andreas Gnau +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 83bee0290741..cb66227aa62f 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -27,7 +27,7 @@ + # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + # POSSIBILITY OF SUCH DAMAGE. + project(OB-UDPST) +-cmake_minimum_required(VERSION 3.0) ++cmake_minimum_required(VERSION 3.0...3.10) + if(${CMAKE_VERSION} VERSION_GREATER "3.3.0") + cmake_policy(SET CMP0057 NEW) + endif() +-- +2.52.0 +