--- CMakeLists.txt.orig	2025-12-11 09:08:29 UTC
+++ CMakeLists.txt
@@ -42,7 +42,9 @@ add_subdirectory(dune)
 
 add_subdirectory(src)
 add_subdirectory(dune)
+if (FREEBSD_INSTALL_DOCS)
 add_subdirectory(doc)
+endif()
 add_subdirectory(cmake/modules)
 
 # if Python bindings are enabled, include necessary sub directories.
