DarkflameServer/build.sh

13 lines
373 B
Bash
Raw Normal View History

# Error if any command fails
set -e
# Create the build directory, preserving it if it already exists
mkdir -p build
cd build
# Run cmake to generate make files
2024-04-06 04:30:26 +00:00
cmake -DCMAKE_BUILD_TYPE="Release" ..
# To build utilizing multiple cores, append `-j` and the amount of cores to utilize, for example `cmake --build . --config Release -j8'
cmake --build . --config Release $1