I'm not sure what this variable is about, but we gotta fix it.

...and rather drop on next EAPI bump.

Bug: https://bugs.gentoo.org/833100
Signed-off-by: Andreas Sturmlechner <ast...@gentoo.org>
---
 eclass/cmake.eclass | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass
index 36f2621e19..64a2931898 100644
--- a/eclass/cmake.eclass
+++ b/eclass/cmake.eclass
@@ -593,9 +593,12 @@ cmake_src_configure() {
                "${mycmakeargs_local[@]}"
                -DCMAKE_BUILD_TYPE="${CMAKE_BUILD_TYPE}"
                -DCMAKE_TOOLCHAIN_FILE="${toolchain_file}"
-               "${MYCMAKEARGS}"
        )
 
+       if [[ -n ${MYCMAKEARGS} ]] ; then
+               cmakeargs+=( "${MYCMAKEARGS}" )
+       fi
+
        if [[ -n "${CMAKE_EXTRA_CACHE_FILE}" ]] ; then
                cmakeargs+=( -C "${CMAKE_EXTRA_CACHE_FILE}" )
        fi
-- 
2.35.1

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to