diff --git a/CMakeLists.txt b/CMakeLists.txt
index 02907565de880845d72d1e336be154ac4bf4839a..ba1ed98646d3c9c7fe52115ced1c018d5cdbc716 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -171,6 +171,12 @@ if(SSE_FOUND)
   list(APPEND packages SSE)
 endif()
 
+#Searching for format package
+find_package(fmt CONFIG REQUIRED)
+if(fmt_FOUND)
+  list(APPEND packages fmt)
+endif()
+
 
 #Searching for FairMQ
 find_package(FairMQ CONFIG REQUIRED)
diff --git a/algo/CMakeLists.txt b/algo/CMakeLists.txt
index 6a5ffeedcdc96ce53d0f90b10b9a74f0f5b67720..f9ce06acec662bfef6203ba8d888e4d0b701d34a 100644
--- a/algo/CMakeLists.txt
+++ b/algo/CMakeLists.txt
@@ -71,6 +71,7 @@ target_link_libraries(Algo
   PUBLIC    OnlineData
             ROOT::GenVector
             GSL
+            fmt::fmt
             Boost::program_options
             Boost::filesystem
             xpu