You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
epel-rpm-macros/cmake-build

18 lines
466 B

#!/bin/bash
# Shell wrapper for supporting compiling with different backends for CMake < 3.13
# Collect arguments
__cmake_builddir="$1"
__build_flags="${@:2}"
if [ -f "${__cmake_builddir}/Makefile" ]; then
/usr/bin/make -C "${__cmake_builddir}" V=1 VERBOSE=1 ${__build_flags}
exit $?
elif [ -f "${__cmake_builddir}/build.ninja" ]; then
/usr/bin/ninja -C "${__cmake_builddir}" -v ${__build_flags}
exit $?
else
echo "Unknown build format, exiting!"
exit 99
fi