1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-21 18:11:11 +00:00

Use CMake's -B, --build, and --install options

This commit is contained in:
ShadowNinja 2022-01-31 19:42:24 -05:00 committed by rubenwardy
parent f5e54cd398
commit 24a0f55c9c
6 changed files with 22 additions and 33 deletions

View file

@ -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))