diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2024-10-13 00:00:18 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2024-10-15 19:58:21 +0200 |
commit | 0c47dfd123d80f45e5d0b287e50775a65c9552b4 (patch) | |
tree | 157a1a34fc627a7670e2ba4be5e02dedf172abbc /eclass | |
parent | dev-ml/ocaml-compiler-libs: not for ocaml-5 (diff) | |
download | gentoo-0c47dfd123d80f45e5d0b287e50775a65c9552b4.tar.gz gentoo-0c47dfd123d80f45e5d0b287e50775a65c9552b4.tar.bz2 gentoo-0c47dfd123d80f45e5d0b287e50775a65c9552b4.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.eclass | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/eclass/ecm-common.eclass b/eclass/ecm-common.eclass index c0c2b4f7e644..ba6840d75a6d 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 } |