Skip to content

Commit 2ce2550

Browse files
build: fix option printing unset variable
1 parent 9df06ac commit 2ce2550

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

buildcmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ if [[ $VERBOSE -eq 1 ]]; then
575575

576576
# Print selected options
577577
for option in ${!opt*}; do
578-
echo " $option = ${!option}"
578+
echo " $option = ${!option[*]:-}"
579579
done
580580
fi
581581

@@ -657,7 +657,7 @@ CC=$opt_CC CXX=$opt_CXX FC=$opt_FC cmake "$my_srcdir" \
657657
[[ $VERBOSE -eq 1 ]] && export VERBOSE
658658
make "$opt_parallel"
659659

660-
# Only Install if the user provides an install prefix with the
660+
# Only Install if the user provides an install prefix with the
661661
# `--install-prefix` option. Without this option, `make install` would be a
662662
# no-op.
663663
if [[ -n "$opt_install_prefix" ]]

0 commit comments

Comments
 (0)