diff --git a/algo/CMakeLists.txt b/algo/CMakeLists.txt
index 6ba7a06c032faec9f9a1832e0724a3b7c801d8da..3b03adb99d8c8de7af9c7d0d38dd42e7d9944494 100644
--- a/algo/CMakeLists.txt
+++ b/algo/CMakeLists.txt
@@ -227,7 +227,7 @@ target_link_libraries(Algo
             external::fles_monitoring
             cppzmq
             poolstl
-  PRIVATE   CbmKFParticleOnlineInterface 
+            CbmKFParticleOnlineInterface 
 )
 target_compile_definitions(Algo PUBLIC NO_ROOT)
 xpu_attach(Algo ${DEVICE_SRCS})
@@ -301,7 +301,7 @@ if (NOT CBM_ONLINE_STANDALONE)
               external::fles_monitoring
               cppzmq
               poolstl
-  PRIVATE   CbmKFParticleOfflineInterface 
+              CbmKFParticleOfflineInterface 
   )
   xpu_attach(AlgoOffline ${DEVICE_SRCS})
 
diff --git a/algo/kfp/interface/CMakeLists.txt b/algo/kfp/interface/CMakeLists.txt
index ce26ad980038dfe6439bfb621a8ab61eba0e8552..c5c21f04a4ca138f5f9e78594af44e4651f44934 100644
--- a/algo/kfp/interface/CMakeLists.txt
+++ b/algo/kfp/interface/CMakeLists.txt
@@ -12,7 +12,7 @@ if(NOT CBM_ONLINE_STANDALONE)
   target_compile_definitions(CbmKFParticleOnlineInterface 
     INTERFACE DO_TPCCATRACKER_EFF_PERFORMANCE NonhomogeneousField CBM USE_TIMERS)
   target_link_libraries(CbmKFParticleOnlineInterface 
-    INTERFACE ROOT::Core KFParticle)
+    INTERFACE ROOT::Core ROOT::Hist ROOT::MathCore KFParticle)
   install(TARGETS CbmKFParticleOnlineInterface DESTINATION lib)
 
   ### CbmKFParticleOfflineInterface
@@ -21,7 +21,7 @@ if(NOT CBM_ONLINE_STANDALONE)
   target_compile_definitions(CbmKFParticleOfflineInterface 
     INTERFACE DO_TPCCATRACKER_EFF_PERFORMANCE NonhomogeneousField CBM USE_TIMERS)
   target_link_libraries(CbmKFParticleOfflineInterface 
-    INTERFACE ROOT::Core KFParticle)
+    INTERFACE ROOT::Core ROOT::Hist ROOT::MathCore KFParticle)
   install(TARGETS CbmKFParticleOfflineInterface DESTINATION lib)
 else()
   # Creating a replacement of the CbmKFParticleOnlineInterface library for a standalone mode