build-style/cmake: support build with cmake-bootstrap
This commit is contained in:
parent
d8a1929628
commit
6b9c9c7dfa
|
@ -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} \
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue