From e9382b02e65eddbbdb671c643cda72ca667151ed Mon Sep 17 00:00:00 2001 From: Pavol Sloboda Date: Fri, 18 Jul 2025 14:34:11 +0000 Subject: [PATCH] [CMake] Added the argument specifying the minimum required policy version for cmake to version 3.5 to comply to this fedora change: https://fedoraproject.org/wiki/Changes/CMake4.0 and enable us to use CMake4.0 in the future. Resolves: RHBZ#2380892 --- mariadb11.8.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/mariadb11.8.spec b/mariadb11.8.spec index 26da45b..06c0a43 100644 --- a/mariadb11.8.spec +++ b/mariadb11.8.spec @@ -979,6 +979,7 @@ CXXFLAGS="$CFLAGS"; CPPFLAGS="$CFLAGS"; export CFLAGS CXXFLAGS CPPFLAGS # The INSTALL_xxx macros have to be specified relative to CMAKE_INSTALL_PREFIX # so we can't use %%{_datadir} and so forth here. %cmake \ + -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \ -DBUILD_CONFIG=mysql_release \ -DFEATURE_SET="community" \ -DWITH_SBOM=0 \