--- CMakeLists.txt.orig	2025-09-10 14:50:03 UTC
+++ CMakeLists.txt
@@ -231,7 +231,7 @@ endif()
   add_subdirectory(test)
 endif()
 
-if (NOT CMAKE_CROSSCOMPILING)
+if (FREEBSD_BUILD_BENCHMARKS AND NOT CMAKE_CROSSCOMPILING)
   add_subdirectory(benchmark)
 endif()
 
