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 Name: kokkos
Version: 3.1.01 Version: 3.1.01
%global sover 3.1.1 %global sover 3.1.1
@ -38,9 +40,6 @@ This package contains the development files of %{name}.
%setup -q %setup -q
%build %build
mkdir build
pushd build
%{cmake3} \ %{cmake3} \
-DKokkos_ENABLE_TESTS=On \ -DKokkos_ENABLE_TESTS=On \
-DCMAKE_INSTALL_INCLUDEDIR=include/kokkos \ -DCMAKE_INSTALL_INCLUDEDIR=include/kokkos \
@ -49,15 +48,14 @@ pushd build
-DKokkos_ENABLE_OPENMP=ON \ -DKokkos_ENABLE_OPENMP=ON \
-DKokkos_ENABLE_SERIAL=ON \ -DKokkos_ENABLE_SERIAL=ON \
-DKokkos_ENABLE_HWLOC=ON \ -DKokkos_ENABLE_HWLOC=ON \
.. %{nil}
%make_build %cmake3_build
popd
%install %install
%make_install -C build %cmake3_install
%check %check
make -C build test CTEST_OUTPUT_ON_FAILURE=1 %{?testargs} %ctest3
%files %files
%doc README.md %doc README.md