16 lines
281 B
Bash
16 lines
281 B
Bash
|
#!/bin/sh
|
||
|
[ -z $CONFIG ] && config=Release || config="$CONFIG"
|
||
|
|
||
|
if [ "$SKIP_CMAKE" != "true" ]; then
|
||
|
cmake \
|
||
|
-S . \
|
||
|
-B build \
|
||
|
-G Ninja \
|
||
|
-DCMAKE_BUILD_TYPE=$config
|
||
|
fi
|
||
|
|
||
|
cmake \
|
||
|
--build build \
|
||
|
--config $config \
|
||
|
--parallel $(nproc)
|