Improve compatibility with new CMake macro

Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
This commit is contained in:
ignatenkobrain 2020-07-05 20:29:17 +02:00
commit 613bcdc250
No known key found for this signature in database
GPG key ID: 115D5AB89C5C1E1E

View file

@ -1,3 +1,5 @@
%undefine __cmake_in_source_build
Name: xtensor
Version: 0.21.2
Release: 1%{?dist}
@ -48,14 +50,14 @@ Requires: xsimd-devel
%autosetup -p1
%build
%cmake -DBUILD_TESTS=ON .
%make_build
%cmake -DBUILD_TESTS=ON
%cmake_build
%install
%make_install
%cmake_install
%check
%make_build xtest
%make_build -C %{_vpath_builddir} xtest
%files devel
%doc README.md