| |
@@ -9,12 +9,16 @@
|
| |
# - Set default install prefixes and library install directories
|
| |
# - Turn on shared libraries by default
|
| |
%cmake_lxqt \
|
| |
+ %undefine __cmake_in_source_build \
|
| |
+ %undefine __cmake3_in_source_build \
|
| |
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
|
| |
CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
|
| |
FFLAGS="${FFLAGS:-%optflags%{?_fmoddir: -I%_fmoddir}}" ; export FFLAGS ; \
|
| |
FCFLAGS="${FCFLAGS:-%optflags%{?_fmoddir: -I%_fmoddir}}" ; export FCFLAGS ; \
|
| |
%{?__global_ldflags:LDFLAGS="${LDFLAGS:-%__global_ldflags}" ; export LDFLAGS ;} \
|
| |
%{?fedora:%{__cmake}}%{!?fedora:%{__cmake3}} \\\
|
| |
+ %{?__cmake_builddir:-S "%{_vpath_srcdir}"} \\\
|
| |
+ %{?__cmake_builddir:-B "%{__cmake_builddir}"} \\\
|
| |
-DCMAKE_C_FLAGS_RELEASE:STRING="-DNDEBUG" \\\
|
| |
-DCMAKE_CXX_FLAGS_RELEASE:STRING="-DNDEBUG" \\\
|
| |
-DCMAKE_Fortran_FLAGS_RELEASE:STRING="-DNDEBUG" \\\
|
| |
This synchronizes the behavior of
%cmake_lxqt
with%cmake_kf5
and%cmake
.Reference: https://fedoraproject.org/wiki/Changes/CMake_to_do_out-of-source_builds