Improve compatibility with new CMake macro

Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Raits 2020-07-20 13:33:40 +02:00
parent 02e84592ae
commit fbe972da4c
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: kokkos
Version: 3.1.01
%global sover 3.1.1
@ -38,9 +40,6 @@ This package contains the development files of %{name}.
%setup -q
%build
mkdir build
pushd build
%{cmake3} \
-DKokkos_ENABLE_TESTS=On \
-DCMAKE_INSTALL_INCLUDEDIR=include/kokkos \
@ -49,15 +48,14 @@ pushd build
-DKokkos_ENABLE_OPENMP=ON \
-DKokkos_ENABLE_SERIAL=ON \
-DKokkos_ENABLE_HWLOC=ON \
..
%make_build
popd
%{nil}
%cmake3_build
%install
%make_install -C build
%cmake3_install
%check
make -C build test CTEST_OUTPUT_ON_FAILURE=1 %{?testargs}
%ctest3
%files
%doc README.md