Call termux_setup_cmake before invoking cmake

This fixes build in an environment (e.g. the Docker image) without
cmake installed.
This commit is contained in:
Fredrik Fornwall 2017-01-18 04:06:03 +01:00
parent 5327a75421
commit 320bee67d1
2 changed files with 3 additions and 0 deletions

View File

@ -42,6 +42,7 @@ termux_step_post_extract_package () {
} }
termux_step_host_build () { termux_step_host_build () {
termux_setup_cmake
cmake -G "Unix Makefiles" $TERMUX_PKG_SRCDIR \ cmake -G "Unix Makefiles" $TERMUX_PKG_SRCDIR \
-DLLVM_BUILD_TESTS=OFF \ -DLLVM_BUILD_TESTS=OFF \
-DLLVM_INCLUDE_TESTS=OFF -DLLVM_INCLUDE_TESTS=OFF

View File

@ -10,6 +10,8 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-DENABLE_JEMALLOC=OFF -DGPERF_PRG=$TERMUX_PKG_H
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" -DLUA_PRG=$TERMUX_PKG_HOSTBUILD_DIR/deps/usr/bin/luajit" TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" -DLUA_PRG=$TERMUX_PKG_HOSTBUILD_DIR/deps/usr/bin/luajit"
termux_step_host_build () { termux_step_host_build () {
termux_setup_cmake
mkdir -p $TERMUX_PKG_HOSTBUILD_DIR/deps mkdir -p $TERMUX_PKG_HOSTBUILD_DIR/deps
cd $TERMUX_PKG_HOSTBUILD_DIR/deps cd $TERMUX_PKG_HOSTBUILD_DIR/deps
cmake $TERMUX_PKG_SRCDIR/third-party cmake $TERMUX_PKG_SRCDIR/third-party