commit: 8d6be776fa06e7e32fa9e2fb369286de59f3a0de
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 15 14:46:43 2025 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Thu Oct 16 19:14:25 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d6be776
ecm-common.eclass: Raise CMake minimum to 3.31
cmake.eclass remains at 3.28 in ::gentoo for a while, so having to
define the BDEPEND as well here.
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
eclass/ecm-common.eclass | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/eclass/ecm-common.eclass b/eclass/ecm-common.eclass
index 7f5d3d1e9915..9db2d68e6f41 100644
--- a/eclass/ecm-common.eclass
+++ b/eclass/ecm-common.eclass
@@ -1,4 +1,4 @@
-# Copyright 2024 Gentoo Authors
+# Copyright 2024-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: ecm-common.eclass
@@ -133,7 +133,10 @@ fi
DESCRIPTION="Common files for ${PN/-common/}"
-BDEPEND=">=kde-frameworks/extra-cmake-modules-${KFMIN}:*"
+BDEPEND="
+ >=dev-build/cmake-3.31.9-r1
+ >=kde-frameworks/extra-cmake-modules-${KFMIN}:*
+"
case ${ECM_I18N} in
true)
@@ -185,7 +188,7 @@ fi
# Create a CMakeLists.txt file with minimum ECM setup.
_ecm-common_preamble() {
cat > CMakeLists.txt <<- _EOF_ || die
- cmake_minimum_required(VERSION 3.16)
+ cmake_minimum_required(VERSION 3.31)
project(${PN} VERSION ${PV})
find_package(ECM "${KFMIN}" REQUIRED NO_MODULE)