Skip to content

Commit df8d918

Browse files
committed
make-srpm.sh: fix build failure on Fedora rawhide
... caused by backward-incompatible change of the %cmake RPM macro: https://fedoraproject.org/wiki/Changes/CMake_to_do_out-of-source_builds
1 parent 1d4e4f0 commit df8d918

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

make-srpm.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,20 +138,20 @@ code scan defect lists to find out added or fixed defects.
138138
make version.cc
139139
mkdir csdiff_build
140140
cd csdiff_build
141-
%cmake .. -DBUILD_PYCSDIFF=OFF
141+
%cmake .. -B. -DBUILD_PYCSDIFF=OFF
142142
make %{?_smp_mflags} VERBOSE=yes
143143
144144
%if %{with python2}
145145
mkdir ../csdiff_build_py2
146146
cd ../csdiff_build_py2
147-
%cmake .. -DPYTHON_EXECUTABLE=%{__python2}
147+
%cmake .. -B. -DPYTHON_EXECUTABLE=%{__python2}
148148
make %{?_smp_mflags} VERBOSE=yes
149149
%endif
150150
151151
%if %{with python3}
152152
mkdir ../csdiff_build_py3
153153
cd ../csdiff_build_py3
154-
%cmake .. \\
154+
%cmake .. -B. \\
155155
-DPYTHON_EXECUTABLE=%{__python3} \\
156156
-DBOOST_PYTHON_LIB_NAME=boost_python%{python3_version_nodots}
157157
make %{?_smp_mflags} VERBOSE=yes pycsdiff

0 commit comments

Comments
 (0)