From d3d0a95c5d5485c6583c479a93b77cad64e1892d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Podgain=C3=B5i?= Date: Tue, 5 Mar 2024 15:55:47 +0100 Subject: [PATCH] Fix EXTRA_CMAKE_ARGS behavior At least on MacOS (and maybe on other systems as well), omitting the EXTRA_CMAKE_ARGS argument when building produces a shell error "unbound variable" without this fix. --- scripts/build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/build.sh b/scripts/build.sh index 9f7384c43..91ef626e2 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -99,7 +99,9 @@ if [[ -n "${CMAKE_TOOLCHAIN_FILE}" ]]; then ) fi -cmake_config_args+=("${EXTRA_CMAKE_ARGS_ARRAY[@]}") +if [[ -n "${EXTRA_CMAKE_ARGS_ARRAY-}" ]]; then + cmake_config_args+=("${EXTRA_CMAKE_ARGS_ARRAY[@]}") +fi "${CMAKE}" "${cmake_config_args[@]}" -- GitLab