mirror of
https://github.com/QuantumPackage/qp2.git
synced 2024-11-03 20:53:54 +01:00
19 lines
361 B
Plaintext
19 lines
361 B
Plaintext
# Configuration for the Ninja package
|
|
|
|
NINJA=${NINJA:-$(command -v ninja)}
|
|
|
|
if [[ ${NINJA}.x == ".x" ]] ; then
|
|
NINJA=${QP_ROOT}/bin/ninja
|
|
fi
|
|
|
|
export NINJA
|
|
|
|
function ninja () {
|
|
if [[ -f ${QP_ROOT}/build.ninja ]] ; then
|
|
${QP_ROOT}/bin/ninja "$@"
|
|
else
|
|
>&2 echo "Error: build.ninja does not exists.
|
|
You need to run ./configure first."
|
|
fi
|
|
}
|