--- CMakeLists.txt.orig	2023-09-05 01:20:58 UTC
+++ CMakeLists.txt
@@ -398,7 +398,7 @@ if (NOT IQTREE_FLAGS MATCHES "single")
     	else()
         	link_directories(${PROJECT_SOURCE_DIR}/libmac)
         endif()	
-    elseif (WIN32 OR UNIX)
+    elseif (WIN32 OR UNIX AND NOT ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
         if (BINARY32)
             link_directories(${PROJECT_SOURCE_DIR}/lib32)
         else()
