From d2ee94aa91ae6cc626420c60c0d9bb40827dac1d Mon Sep 17 00:00:00 2001
From: Pradipta Samanta <samanta@dkrz.de>
Date: Fri, 21 Feb 2025 14:59:55 +0100
Subject: [PATCH] enabled compilation using Kokkos

---
 src/support/CMakeLists.txt | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/support/CMakeLists.txt b/src/support/CMakeLists.txt
index 7af714e..b4ceb37 100644
--- a/src/support/CMakeLists.txt
+++ b/src/support/CMakeLists.txt
@@ -57,6 +57,9 @@ if(IM_ENABLE_OPENACC)
   endif()
 endif()
 
+message(STATUS "iconmath-support enabling Kokkos")
+find_package(Kokkos REQUIRED)
+
 target_include_directories(
   iconmath-support
   PUBLIC
@@ -74,7 +77,7 @@ target_include_directories(
     # https://cmake.org/cmake/help/latest/manual/cmake-generator-expressions.7.html
     $<BUILD_INTERFACE:$<$<COMPILE_LANGUAGE:C,CXX>:${CMAKE_CURRENT_BINARY_DIR}>>)
 
-target_link_libraries(iconmath-support PUBLIC fortran-support::fortran-support)
+target_link_libraries(iconmath-support PUBLIC fortran-support::fortran-support Kokkos::kokkos)
 
 install(TARGETS iconmath-support EXPORT "${PROJECT_NAME}-targets")
 
-- 
GitLab