Use legacy behavior for cmake-configure

epel9
Neal Gompa 4 years ago
parent 3d7bea8322
commit e93d8e2f0d

@ -2,7 +2,7 @@
# Shell wrapper for supporting compiling with different backends for CMake < 3.13
# Collect arguments
__cmake_builddir="$1"
__cmake_builddir="$(realpath $1)"
__build_flags="${@:2}"
if [ -f "${__cmake_builddir}/Makefile" ]; then

@ -3,11 +3,15 @@
# Collect arguments
__cmake="$1"
__cmake_srcdir="$2"
__cmake_builddir="$3"
__cmake_srcdir="$(realpath $2)"
__cmake_builddir="$(realpath $3)"
__cmake_flags="${@:4}"
__cmake_retval=0
# Do the build
mkdir -p "${__cmake_builddir}"
"${__cmake}" ${__cmake_flags} "${__cmake_srcdir}" "${__cmake_builddir}"
exit $?
pushd "${__cmake_builddir}"
"${__cmake}" ${__cmake_flags} "${__cmake_srcdir}"
__cmake_retval=$?
popd
exit ${__cmake_retval}

@ -2,7 +2,7 @@
# Shell wrapper for supporting installing with different backends for CMake < 3.13
# Collect arguments
__cmake_builddir="$1"
__cmake_builddir="$(realpath $1)"
__cmake_destdir="$2"
if [ -f "${__cmake_builddir}/Makefile" ]; then

@ -1,6 +1,6 @@
Name: epel-rpm-macros
Version: 8
Release: 15
Release: 16
Summary: Extra Packages for Enterprise Linux RPM macros
Group: System Environment/Base
@ -83,6 +83,9 @@ install -Dpm 755 %{SOURCE24} \
%changelog
* Thu Jul 30 2020 Neal Gompa <ngompa13@gmail.com> - 8-16
- Use legacy behavior for cmake-configure
* Wed Jul 29 2020 Neal Gompa <ngompa13@gmail.com> - 8-15
- Backport support for out-of-source builds controlled by __cmake_in_source_build macro (#1861329)
- Backport cmake_build and cmake_install macros

Loading…
Cancel
Save