Skip to content

Commit 353b3d4

Browse files
committed
Updated build helper script.
1 parent e78b02e commit 353b3d4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

autogen.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ fi
8989
# ====== Configure with CMake ===============================================
9090
if [ -e CMakeLists.txt ] ; then
9191
rm -f CMakeCache.txt
92-
if [ "$*" != "" ] ; then
92+
if [ $# -gt 0 ] ; then
9393
CMAKE_OPTIONS="${CMAKE_OPTIONS} $*"
9494
fi
9595
echo "CMake options:${CMAKE_OPTIONS} . -DCMAKE_INSTALL_PREFIX=\"${installPrefix}\""
@@ -99,7 +99,8 @@ if [ -e CMakeLists.txt ] ; then
9999
# ====== Configure with AutoConf/AutoMake ===================================
100100
elif [ -e bootstrap ] ; then
101101
./bootstrap
102-
./configure $*
102+
# shellcheck disable=SC2068
103+
./configure $@
103104

104105
else
105106
echo >&2 "ERROR: Failed to configure with CMake or AutoMake/AutoConf!"

0 commit comments

Comments
 (0)