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:
parent
77c5d42f75
commit
50646f0efa
@ -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" \\\
|
||||
|
Loading…
Reference in New Issue
Block a user