diff --git a/common/environment/build-style/cmake.sh b/common/environment/build-style/cmake.sh index c9e4d896159..4306b7b3882 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