aboutsummaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2024-10-13 00:00:18 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2024-10-13 00:03:08 +0200
commitf1b463ed12a18970880178b2b71d238eb1d6fc50 (patch)
tree1de21317b2d302e72f1b1f442d6096ebe99a5276 /eclass
parentkde-plasma/plasma-workspace: Drop IUSE geolocation, update dependencies (diff)
downloadkde-f1b463ed12a18970880178b2b71d238eb1d6fc50.tar.gz
kde-f1b463ed12a18970880178b2b71d238eb1d6fc50.tar.bz2
kde-f1b463ed12a18970880178b2b71d238eb1d6fc50.zip
ecm-common.eclass: Allow ebuilds to set/override cmake args
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/ecm-common.eclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/eclass/ecm-common.eclass b/eclass/ecm-common.eclass
index c0c2b4f7e6..ba6840d75a 100644
--- a/eclass/ecm-common.eclass
+++ b/eclass/ecm-common.eclass
@@ -392,7 +392,11 @@ ecm-common_src_prepare() {
# Passes -DQT_MAJOR_VERSION=${_KFSLOT} only.
ecm-common_src_configure() {
# necessary for at least KF6KCMUtils
- local mycmakeargs=( -DQT_MAJOR_VERSION=${_KFSLOT} )
+ local cmakeargs=( -DQT_MAJOR_VERSION=${_KFSLOT} )
+
+ # allow the ebuild to override what we set here
+ mycmakeargs=("${cmakeargs[@]}" "${mycmakeargs[@]}")
+
cmake_src_configure
}