Improve compatibility with new CMake macro

Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
epel8
Igor Raits 5 years ago
parent 6a7a59a1d3
commit 74bc37c3b3
No known key found for this signature in database
GPG Key ID: 115D5AB89C5C1E1E

@ -137,12 +137,9 @@ PYTHONPATH=%{_datadir}/ECM/python
export PYTHONPATH export PYTHONPATH
%endif %endif
mkdir %{_target_platform} %{cmake_kf5} -B %{_target_platform} \
pushd %{_target_platform}
%{cmake_kf5} .. \
%{?ninja:-G Ninja} \ %{?ninja:-G Ninja} \
%{?tests:-DBUILD_TESTING:BOOL=ON} %{?tests:-DBUILD_TESTING:BOOL=ON}
popd
%if 0%{?ninja} %if 0%{?ninja}
%ninja_build -C %{_target_platform} %ninja_build -C %{_target_platform}

Loading…
Cancel
Save