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