9
1
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-08-30 04:33:41 +02:00
qp2/etc/ninja.rc

19 lines
351 B
Plaintext

# Configuration for the Ninja package
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
}