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@gentoo.org>
This commit is contained in:
Andreas Sturmlechner 2025-10-15 16:46:43 +02:00
parent 5c41ba9259
commit 8d6be776fa
No known key found for this signature in database
GPG Key ID: AE591BBC73E4DD5E

View File

@ -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)