cmake-utils.eclass: warn when using mycmakeargs as a string
authorMichael Palimaka <kensington@gentoo.org>
Fri, 23 Oct 2015 17:34:28 +0000 (04:34 +1100)
committerMichael Palimaka <kensington@gentoo.org>
Mon, 26 Oct 2015 17:04:15 +0000 (04:04 +1100)
eclass/cmake-utils.eclass

index 77e866239364fc67d30fe6c244871d506156bf53..dd6045a95a03ad1b3818c93051726b7cda76762f 100644 (file)
@@ -547,6 +547,7 @@ enable_cmake-utils_src_configure() {
        # Make the array a local variable since <=portage-2.1.6.x does not
        # support global arrays (see bug #297255).
        if [[ $(declare -p mycmakeargs 2>&-) != "declare -a mycmakeargs="* ]]; then
+               eqawarn "Declaring mycmakeargs as a variable is deprecated. Please use an array instead."
                local mycmakeargs_local=(${mycmakeargs})
        else
                local mycmakeargs_local=("${mycmakeargs[@]}")