diff --git a/common/environment/build-style/cmake.sh b/common/environment/build-style/cmake.sh index c2c0c76c8ef..19b8f35a01d 100644 --- a/common/environment/build-style/cmake.sh +++ b/common/environment/build-style/cmake.sh @@ -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 diff --git a/srcpkgs/cmake/template b/srcpkgs/cmake/template index 5d3308f93b5..9da71ccd1a9 100644 --- a/srcpkgs/cmake/template +++ b/srcpkgs/cmake/template @@ -20,6 +20,7 @@ replaces="cmake-bootstrap>=0" if [ "$CROSS_BUILD" ]; then build_style=cmake + hostmakedepends+=" cmake" configure_args="-DCMAKE_DOC_DIR=/share/doc/cmake -DCMAKE_USE_SYSTEM_LIBRARIES=ON -DKWSYS_LFS_WORKS=1" fi