commit:     f1b463ed12a18970880178b2b71d238eb1d6fc50
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 12 22:00:18 2024 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Oct 12 22:03:08 2024 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=f1b463ed

ecm-common.eclass: Allow ebuilds to set/override cmake args

Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 eclass/ecm-common.eclass | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

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
 }
 

Reply via email to