diff options
author | Mike Gilbert <floppym@gentoo.org> | 2023-02-27 13:28:52 -0500 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2023-03-11 14:18:28 -0500 |
commit | 5893dbe223527892f35b0c6b6d4f6f4854777ed3 (patch) | |
tree | 8a72aee80b95db5c08e18521fbd23de0a62df6fd | |
parent | dev-cpp/catch: remove outdated blockers (diff) | |
download | gentoo-5893dbe223527892f35b0c6b6d4f6f4854777ed3.tar.gz gentoo-5893dbe223527892f35b0c6b6d4f6f4854777ed3.tar.bz2 gentoo-5893dbe223527892f35b0c6b6d4f6f4854777ed3.zip |
cmake.eclass: handle quoted whitespace in MYCMAKEARGS
This uses eval in a similar way to econf and meson.eclass.
Closes: https://github.com/gentoo/gentoo/pull/29839
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
-rw-r--r-- | eclass/cmake.eclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass index 2c5620adede5..46659867b1a8 100644 --- a/eclass/cmake.eclass +++ b/eclass/cmake.eclass @@ -595,9 +595,9 @@ cmake_src_configure() { -DCMAKE_TOOLCHAIN_FILE="${toolchain_file}" ) - if [[ -n ${MYCMAKEARGS} ]] ; then - cmakeargs+=( "${MYCMAKEARGS}" ) - fi + # Handle quoted whitespace + eval "local -a MYCMAKEARGS=( ${MYCMAKEARGS} )" + cmakeargs+=( "${MYCMAKEARGS[@]}" ) if [[ -n "${CMAKE_EXTRA_CACHE_FILE}" ]] ; then cmakeargs+=( -C "${CMAKE_EXTRA_CACHE_FILE}" ) |