1 |
commit: 29392d23de5c35fab5c8a59a145fbcccb6a81859 |
2 |
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 23 17:34:28 2015 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 26 17:04:15 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29392d23 |
7 |
|
8 |
cmake-utils.eclass: warn when using mycmakeargs as a string |
9 |
|
10 |
eclass/cmake-utils.eclass | 1 + |
11 |
1 file changed, 1 insertion(+) |
12 |
|
13 |
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass |
14 |
index 77e8662..dd6045a 100644 |
15 |
--- a/eclass/cmake-utils.eclass |
16 |
+++ b/eclass/cmake-utils.eclass |
17 |
@@ -547,6 +547,7 @@ enable_cmake-utils_src_configure() { |
18 |
# Make the array a local variable since <=portage-2.1.6.x does not |
19 |
# support global arrays (see bug #297255). |
20 |
if [[ $(declare -p mycmakeargs 2>&-) != "declare -a mycmakeargs="* ]]; then |
21 |
+ eqawarn "Declaring mycmakeargs as a variable is deprecated. Please use an array instead." |
22 |
local mycmakeargs_local=(${mycmakeargs}) |
23 |
else |
24 |
local mycmakeargs_local=("${mycmakeargs[@]}") |