From: Eric Haszlakiewicz Date: Sun, 3 May 2020 03:50:16 +0000 (+0000) Subject: Fix cmake-configure to accept "--prefix=" in addition to "--prefix " (see... X-Git-Tag: json-c-0.15-20200726~61 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f9605e9072383d9ac85e0fb5ecf8f3e44000ce1b;p=thirdparty%2Fjson-c.git Fix cmake-configure to accept "--prefix=" in addition to "--prefix " (see also Issue #591) --- diff --git a/cmake-configure b/cmake-configure index 7a06b660..2fcc39e3 100755 --- a/cmake-configure +++ b/cmake-configure @@ -52,6 +52,9 @@ while [ $# -gt 0 ] ; do FLAGS+=(-DCMAKE_INSTALL_PREFIX="$2") shift ;; + --prefix=*) + FLAGS+=(-DCMAKE_INSTALL_PREFIX="${1##--prefix=}") + ;; --enable-threading) FLAGS+=(-DENABLE_THREADING=ON) ;;