diff --git a/tools/travis-scripts/run-script.sh b/tools/travis-scripts/run-script.sh index 21851f779b..1645b3ae8c 100644 --- a/tools/travis-scripts/run-script.sh +++ b/tools/travis-scripts/run-script.sh @@ -86,6 +86,10 @@ function build_android() # build cpp-tests pushd $COCOS2DX_ROOT/tests/cpp-tests/proj.android + + # generate local.properties to use system installed cmake since we require cmake-3.14+ + CMAKE_PATH=`which cmake` + echo "cmake.dir=$CMAKE_PATH">local.properties do_retry ./gradlew assembleRelease -PPROP_BUILD_TYPE=cmake -PPROP_APP_ABI=arm64-v8a --parallel --info popd }