build: fix typo in cmake patch

The variable in the case argument was mistyped, so the case always
checked against an empty string and never matched.

Fix the variable name.

Signed-off-by: Piotr Stefaniak <pstef@freebsd.org>
[add commit message]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Signed-off-by: maurerr <mariusd84@gmail.com>
This commit is contained in:
Piotr Stefaniak 2020-08-09 00:38:21 +02:00 committed by maurerr
parent 27ed528de2
commit 23f6b6f457

View File

@ -5,7 +5,7 @@
cmake_original_make_flags="${cmake_make_flags}" cmake_original_make_flags="${cmake_make_flags}"
if [ "x${cmake_parallel_make}" != "x" ]; then if [ "x${cmake_parallel_make}" != "x" ]; then
- cmake_make_flags="${cmake_make_flags} -j ${cmake_parallel_make}" - cmake_make_flags="${cmake_make_flags} -j ${cmake_parallel_make}"
+ case "$cmake_paralle_make" in + case "$cmake_parallel_make" in
+ [0-9]*) cmake_parallel_make="-j ${cmake_parallel_make}";; + [0-9]*) cmake_parallel_make="-j ${cmake_parallel_make}";;
+ esac + esac
+ cmake_make_flags="${cmake_make_flags} ${cmake_parallel_make}" + cmake_make_flags="${cmake_make_flags} ${cmake_parallel_make}"