--- eclass/cmake-utils.eclass | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass index 22c8718..e6d77ef 100644 --- a/eclass/cmake-utils.eclass +++ b/eclass/cmake-utils.eclass @@ -583,7 +583,11 @@ enable_cmake-utils_src_configure() { local mycmakeargstype=$(declare -p mycmakeargs 2>&-) if [[ "${mycmakeargstype}" != "declare -a mycmakeargs="* ]]; then if [[ -n "${mycmakeargstype}" ]] ; then - eqawarn "Declaring mycmakeargs as a variable is deprecated. Please use an array instead." + if has "${EAPI:-0}" 2 3 4 5 ; then + eqawarn "Declaring mycmakeargs as a variable is deprecated. Please use an array instead." + else + die "Declaring mycmakeargs as a variable is banned in EAPI=${EAPI}. Please use an array instead." + fi fi local mycmakeargs_local=(${mycmakeargs}) else -- 2.4.10