Make in-source builds behave like before

This commit is contained in:
Neal Gompa 2020-07-19 08:45:08 -04:00
parent 85ead68072
commit 672b300dfb

View File

@ -26,8 +26,8 @@
%{?__global_ldflags:LDFLAGS="${LDFLAGS:-%__global_ldflags}" ; export LDFLAGS ;} \ %{?__global_ldflags:LDFLAGS="${LDFLAGS:-%__global_ldflags}" ; export LDFLAGS ;} \
%endif \ %endif \
%__cmake \\\ %__cmake \\\
-S "%{_vpath_srcdir}" \\\ %{!?__cmake_in_source_build:-S "%{_vpath_srcdir}"} \\\
-B "%{__cmake_builddir}" \\\ %{!?__cmake_in_source_build:-B "%{__cmake_builddir}"} \\\
-DCMAKE_C_FLAGS_RELEASE:STRING="-DNDEBUG" \\\ -DCMAKE_C_FLAGS_RELEASE:STRING="-DNDEBUG" \\\
-DCMAKE_CXX_FLAGS_RELEASE:STRING="-DNDEBUG" \\\ -DCMAKE_CXX_FLAGS_RELEASE:STRING="-DNDEBUG" \\\
-DCMAKE_Fortran_FLAGS_RELEASE:STRING="-DNDEBUG" \\\ -DCMAKE_Fortran_FLAGS_RELEASE:STRING="-DNDEBUG" \\\