Improve compatibility with new CMake macro
Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
02e84592ae
commit
fbe972da4c
14
kokkos.spec
14
kokkos.spec
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user