Setup CMake to do out-of-tree builds by default

This brings CMake in line with upstream best practices for building
with CMake and lines up with how most people expect CMake to behave.
This commit is contained in:
Neal Gompa 2020-05-09 14:29:06 -04:00 committed by besser82
parent 77c5d42f75
commit 50646f0efa

View File

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