aboutsummaryrefslogtreecommitdiff
path: root/util/ci/build.sh
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2022-01-31 19:42:24 -0500
committerrubenwardy <rw@rubenwardy.com>2022-04-08 14:55:21 +0100
commit24a0f55c9c84b2625a564fd07d9da75eaac9c60d (patch)
tree36d704d98a7605ffae40e025ea3f88fd1cb058d5 /util/ci/build.sh
parentf5e54cd39845aeeff50cdbebf625abf3c4a5b92d (diff)
downloadminetest-24a0f55c9c84b2625a564fd07d9da75eaac9c60d.tar.gz
minetest-24a0f55c9c84b2625a564fd07d9da75eaac9c60d.tar.bz2
minetest-24a0f55c9c84b2625a564fd07d9da75eaac9c60d.zip
Use CMake's -B, --build, and --install options
Diffstat (limited to 'util/ci/build.sh')
-rwxr-xr-xutil/ci/build.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/util/ci/build.sh b/util/ci/build.sh
index fb2ec945f..435cc11da 100755
--- a/util/ci/build.sh
+++ b/util/ci/build.sh
@@ -1,8 +1,6 @@
#! /bin/bash -e
-mkdir build
-cd build
-cmake -DCMAKE_BUILD_TYPE=Debug \
+cmake -B build -DCMAKE_BUILD_TYPE=Debug \
-DRUN_IN_PLACE=TRUE -DENABLE_GETTEXT=TRUE \
- -DBUILD_SERVER=TRUE ${CMAKE_FLAGS} ..
-make -j$(($(nproc) + 1))
+ -DBUILD_SERVER=TRUE ${CMAKE_FLAGS}
+cmake --build build --parallel $(($(nproc) + 1))