]> granicus.if.org Git - json-c/commitdiff
Fix cmake-configure to accept "--prefix=<foo>" in addition to "--prefix <foo>" (see...
authorEric Haszlakiewicz <erh+git@nimenees.com>
Sun, 3 May 2020 03:50:16 +0000 (03:50 +0000)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Sun, 3 May 2020 03:50:50 +0000 (03:50 +0000)
cmake-configure

index 7a06b660c19f3138e5c46b7bb6cd6481ccd059ef..2fcc39e3ca78dc2935764ba934448d9b67d5c518 100755 (executable)
@@ -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)
                ;;