9
1
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-12-25 13:03:28 +01:00
qp2/etc/ninja.rc
2020-02-24 20:02:09 +01:00

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
}