diff --git a/CMakeLists.txt b/CMakeLists.txt
index b497a3a49e73e71cea4158049ef8a284771d484c..c641684ed73af5f0b49ec2e728499d3856d38724 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -71,7 +71,7 @@ if (PYBIND)
         )
 endif()
 
-target_link_libraries(${module_name} PUBLIC fmt::fmt)
+target_link_libraries(${module_name} PUBLIC fmt::fmt-header-only)
 target_compile_features(${module_name} PRIVATE cxx_std_14)
 
 if (DOSANITIZE STREQUAL "ON")