diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2022-02-16 18:40:28 +0100 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2022-02-21 17:39:28 +0100 |
commit | 9bac38649bac48278e4e4af90e3f89f78d861ed2 (patch) | |
tree | 268589847d6f1dd288a3e9603dda42642d008be0 /eclass | |
parent | sci-chemistry/gromacs: Fix build for musl (diff) | |
download | gentoo-9bac38649bac48278e4e4af90e3f89f78d861ed2.tar.gz gentoo-9bac38649bac48278e4e4af90e3f89f78d861ed2.tar.bz2 gentoo-9bac38649bac48278e4e4af90e3f89f78d861ed2.zip |
cmake.eclass: Fix MYCMAKEARGS support with >=dev-util/cmake-3.23
Closes: https://bugs.gentoo.org/833100
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/cmake.eclass | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass index 02683634af9f..f34ebef1b764 100644 --- a/eclass/cmake.eclass +++ b/eclass/cmake.eclass @@ -593,9 +593,12 @@ cmake_src_configure() { "${mycmakeargs_local[@]}" -DCMAKE_BUILD_TYPE="${CMAKE_BUILD_TYPE}" -DCMAKE_TOOLCHAIN_FILE="${toolchain_file}" - "${MYCMAKEARGS}" ) + if [[ -n ${MYCMAKEARGS} ]] ; then + cmakeargs+=( "${MYCMAKEARGS}" ) + fi + if [[ -n "${CMAKE_EXTRA_CACHE_FILE}" ]] ; then cmakeargs+=( -C "${CMAKE_EXTRA_CACHE_FILE}" ) fi |