diff --git a/CMakeLists.txt b/CMakeLists.txt
index 229110d9c1a5b8b202a6811a0a2276f91ba6b73a..5937d6e5ec88011c9456fa684a9af154e16a01cd 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -82,6 +82,7 @@ if (PYBIND)
         )
 endif()
 
+target_link_libraries(${module_name} PUBLIC fmt::fmt)
 target_compile_features(${module_name} PRIVATE cxx_std_14)
 
 target_compile_options(${module_name} PRIVATE