From 79f39f19415c141cb86ad993c59d76afa8044db8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Wed, 17 Mar 2021 08:11:31 +0700 Subject: [PATCH] build-style/cmake: do not require ninja if make is desired --- common/environment/build-style/cmake.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/environment/build-style/cmake.sh b/common/environment/build-style/cmake.sh index c9e4d8961598..54f51ccd1ef0 100644 --- a/common/environment/build-style/cmake.sh +++ b/common/environment/build-style/cmake.sh @@ -1,5 +1,8 @@ if [ "$CHROOT_READY" ]; then if [[ "$hostmakedepends" != *"cmake-bootstrap"* ]]; then - hostmakedepends+=" cmake ninja" + hostmakedepends+=" cmake" + fi + if [[ "$make_cmd" != make ]]; then + hostmakedepends+=" ninja" fi fi