From 97a4afa00648528f75e5a4d2ef4cd1231776f1b3 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_cmd is make --- 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 c9e4d89615..4306b7b388 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:-ninja}" = ninja ]; then + hostmakedepends+=" ninja" fi fi