--- main/updater/CMakeLists.txt.orig	2025-02-16 16:13:50 UTC
+++ main/updater/CMakeLists.txt
@@ -5,7 +5,11 @@ target_compile_definitions(updater PRIVATE IMHEX_PROJE
 )
 
 target_compile_definitions(updater PRIVATE IMHEX_PROJECT_NAME="${PROJECT_NAME}")
-target_link_libraries(updater PRIVATE libimhex ${FMT_LIBRARIES})
+if (BSD AND BSD STREQUAL "FreeBSD")
+    target_link_libraries(updater PRIVATE libimhex ${FMT_LIBRARIES} pthread)
+else ()
+    target_link_libraries(updater PRIVATE libimhex ${FMT_LIBRARIES})
+endif ()
 add_dependencies(main updater)
 setupCompilerFlags(updater)
 
