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:
parent
5327a75421
commit
320bee67d1
@ -42,6 +42,7 @@ termux_step_post_extract_package () {
|
||||
}
|
||||
|
||||
termux_step_host_build () {
|
||||
termux_setup_cmake
|
||||
cmake -G "Unix Makefiles" $TERMUX_PKG_SRCDIR \
|
||||
-DLLVM_BUILD_TESTS=OFF \
|
||||
-DLLVM_INCLUDE_TESTS=OFF
|
||||
|
@ -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_step_host_build () {
|
||||
termux_setup_cmake
|
||||
|
||||
mkdir -p $TERMUX_PKG_HOSTBUILD_DIR/deps
|
||||
cd $TERMUX_PKG_HOSTBUILD_DIR/deps
|
||||
cmake $TERMUX_PKG_SRCDIR/third-party
|
||||
|
Loading…
Reference in New Issue
Block a user