From c7dedb0da5fefb66ff014e4bb73e9346867ff03d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= Date: Tue, 13 Jan 2026 17:05:22 +0100 Subject: [PATCH] Fixed build with cmake-4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jaroslav Škarvada --- vmmlib-1.8.0-cmake-4-fix.patch | 13 +++++++++++++ vmmlib.spec | 4 +++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 vmmlib-1.8.0-cmake-4-fix.patch diff --git a/vmmlib-1.8.0-cmake-4-fix.patch b/vmmlib-1.8.0-cmake-4-fix.patch new file mode 100644 index 0000000..a8f1876 --- /dev/null +++ b/vmmlib-1.8.0-cmake-4-fix.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index f5498c8..eedffe0 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,7 +1,7 @@ + # Copyright (c) 2011 Daniel Pfeifer + # 2011-2014 Stefan.Eilemann@epfl.ch + +-cmake_minimum_required(VERSION 2.8 FATAL_ERROR) ++cmake_minimum_required(VERSION 3.5 FATAL_ERROR) + project(vmmlib) + + set(VERSION_MAJOR 1) diff --git a/vmmlib.spec b/vmmlib.spec index 660a636..0312774 100644 --- a/vmmlib.spec +++ b/vmmlib.spec @@ -20,7 +20,9 @@ BuildRequires: doxygen BuildRequires: cmake BuildRequires: boost-devel # https://github.com/VMML/vmmlib/pull/101 -Patch0: vmmlib-1.8.0-gcc-13-fix.patch +Patch: vmmlib-1.8.0-gcc-13-fix.patch +# https://github.com/VMML/vmmlib/issues/103 +Patch: vmmlib-1.8.0-cmake-4-fix.patch %description vmmlib is a vector and matrix math library implemented using C++ templates.