build-style/cmake: support build with cmake-bootstrap

This commit is contained in:
Đoàn Trần Công Danh 2023-06-22 23:11:58 +07:00 committed by Đoàn Trần Công Danh
parent d8a1929628
commit 6b9c9c7dfa
2 changed files with 3 additions and 2 deletions

View File

@ -72,6 +72,7 @@ _EOF
cmake_args+=" -DCMAKE_INSTALL_SBINDIR=bin"
export CMAKE_GENERATOR="${CMAKE_GENERATOR:-Ninja}"
PATH="$PATH:/usr/libexec/xbps-src/bin"
# Remove -pipe: https://gitlab.kitware.com/cmake/cmake/issues/19590
CFLAGS="-DNDEBUG ${CFLAGS/ -pipe / }" CXXFLAGS="-DNDEBUG ${CXXFLAGS/ -pipe / }" \
cmake ${cmake_args} ${configure_args} \

View File

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