From 613bcdc25064d01d41b7adbf96127891085c6cd9 Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Jul 05 2020 18:29:17 +0000 Subject: Improve compatibility with new CMake macro Signed-off-by: Igor Raits --- diff --git a/xtensor.spec b/xtensor.spec index fb74b7b..135c267 100644 --- a/xtensor.spec +++ b/xtensor.spec @@ -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