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-configure

18 lines
393 B

#!/bin/bash
# Shell wrapper for supporting out-of-source builds with CMake < 3.13
# Collect arguments
__cmake="$1"
__cmake_srcdir="$(realpath $2)"
__cmake_builddir="$(realpath $3)"
__cmake_flags="${@:4}"
__cmake_retval=0
# Do the build
mkdir -p "${__cmake_builddir}"
pushd "${__cmake_builddir}"
"${__cmake}" ${__cmake_flags} "${__cmake_srcdir}"
__cmake_retval=$?
popd
exit ${__cmake_retval}