Skip to content

Commit

Permalink
cmake-utils.eclass: warn when using mycmakeargs as a string
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Palimaka committed Oct 26, 2015
1 parent 14ca37c commit 29392d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions eclass/cmake-utils.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -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[@]}")
Expand Down

0 comments on commit 29392d2

Please sign in to comment.