build-package.sh: use $TERMUX_PKG_API_LEVEL for -DCMAKE_SYSYEM_VERSION

This commit is contained in:
Tom Yan 2018-08-21 20:53:32 +08:00 committed by Fredrik Fornwall
parent 68ebfcf4ad
commit 60e337e7fb

View File

@ -946,7 +946,7 @@ termux_step_configure_cmake () {
-DCMAKE_MAKE_PROGRAM=$MAKE_PROGRAM_PATH \
-DCMAKE_SYSTEM_PROCESSOR=$CMAKE_PROC \
-DCMAKE_SYSTEM_NAME=Android \
-DCMAKE_SYSTEM_VERSION=21 \
-DCMAKE_SYSTEM_VERSION=$TERMUX_PKG_API_LEVEL \
-DCMAKE_SKIP_INSTALL_RPATH=ON \
-DCMAKE_USE_SYSTEM_LIBRARIES=True \
-DBUILD_TESTING=OFF \