1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-22 17:18:39 +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))

View file

@ -1,15 +1,11 @@
#! /bin/bash -eu
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug \
cmake -B build -DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
-DRUN_IN_PLACE=TRUE \
-DENABLE_{GETTEXT,SOUND}=FALSE \
-DBUILD_SERVER=TRUE ..
make GenerateVersion
cd ..
-DBUILD_SERVER=TRUE
cmake --build build --target GenerateVersion
./util/ci/run-clang-tidy.py \
-clang-tidy-binary=clang-tidy-9 -p build \