build-style/cmake: only depends on cmake for non-cmake package

* In the next change, we will remove it from cmake template entirely
This commit is contained in:
Đoàn Trần Công Danh 2021-06-22 22:41:53 +07:00 committed by Đoàn Trần Công Danh
parent 6027990b48
commit a653676c88
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,7 @@
if [ "$CHROOT_READY" ]; then
hostmakedepends+=" cmake"
if [ "$pkgname" != cmake ]; then
hostmakedepends+=" cmake"
fi
if [ "${make_cmd:-ninja}" = ninja ]; then
hostmakedepends+=" ninja"
fi