Hi,
the diff below can be applied to the Kokkos repository to change the
install path of the header files.
I tested that the patch can compile valid kokkos code using the example
'example/build_cmake_installed' from the Kokkos upstream repo.
Also I tested that the update works from 4.7.1-1 to 4.7.1-2.
If there are no objections I would ask the maintainer to apply the
changes.
Best,
Nils
diff --git a/debian/changelog b/debian/changelog
index ab338fa..3ae117e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+kokkos (4.7.01-2) unstable; urgency=medium
+
+ * Install Kokkos headers into /usr/include/kokkos
+
+ -- Nils Schild <[email protected]> Tue, 04 Nov 2025 20:49:38
+0100
+
kokkos (4.7.01-1) unstable; urgency=medium
* New upstream version.
diff --git a/debian/libkokkos-dev.install b/debian/libkokkos-dev.install
index 30ccf82..2adbb5a 100644
--- a/debian/libkokkos-dev.install
+++ b/debian/libkokkos-dev.install
@@ -1,3 +1,3 @@
-usr/include/* usr/include
+usr/include/kokkos/* usr/include/kokkos
usr/lib/*/*.so usr/lib/${DEB_HOST_MULTIARCH}/
usr/lib/*/cmake usr/lib/${DEB_HOST_MULTIARCH}/
diff --git a/debian/rules b/debian/rules
index cfa53bf..446955a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -14,6 +14,7 @@ endif
override_dh_auto_configure:
dh_auto_configure -- \
+ -DCMAKE_INSTALL_INCLUDEDIR="/usr/include/kokkos" \
-DBUILD_SHARED_LIBS=ON \
-DKokkos_ENABLE_OPENMP=ON \
$(RUN_TESTS)