--- CMakeLists.txt.orig 2025-04-30 22:25:21 UTC +++ CMakeLists.txt @@ -213,7 +213,7 @@ add_subdirectory(tde2e) set(TDE2E_ENABLE_INSTALL ${TD_INSTALL_STATIC_LIBRARIES} CACHE BOOL "" FORCE) add_subdirectory(tde2e) -if (NOT CMAKE_CROSSCOMPILING) +if (FREEBSD_BUILD_BENCHMARKS AND NOT CMAKE_CROSSCOMPILING) add_subdirectory(benchmark) endif()