--- CMakeLists.txt.orig	2026-04-29 23:05:31 UTC
+++ CMakeLists.txt
@@ -18,15 +18,15 @@ imp_find_python()
 include(cmake_modules/IMPFindPython.cmake)
 imp_find_python()
 
-execute_process(COMMAND ${PYTHON_EXECUTABLE} setup_git.py
-                  RESULT_VARIABLE setup
-                  OUTPUT_VARIABLE toutput
-                  ERROR_VARIABLE error
-                  WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
-                  OUTPUT_STRIP_TRAILING_WHITESPACE)
-if(NOT ${setup} EQUAL 0)
-   message(FATAL_ERROR " Failed to run setup_git.py: ${setup}; ${error}")
-endif()
+#execute_process(COMMAND ${PYTHON_EXECUTABLE} setup_git.py
+#                  RESULT_VARIABLE setup
+#                  OUTPUT_VARIABLE toutput
+#                  ERROR_VARIABLE error
+#                  WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
+#                  OUTPUT_STRIP_TRAILING_WHITESPACE)
+#if(NOT ${setup} EQUAL 0)
+#   message(FATAL_ERROR " Failed to run setup_git.py: ${setup}; ${error}")
+#endif()
 
 # Don't deref quoted variables in if()
 if(POLICY CMP0054)
@@ -159,14 +159,14 @@ configure_file (
   "${PROJECT_BINARY_DIR}/include/RMF/config.h"
   )
 
-add_subdirectory(data)
+#add_subdirectory(data)
 add_subdirectory(include)
 
-add_subdirectory(src)
-add_subdirectory(bin)
+#add_subdirectory(src)
+#add_subdirectory(bin)
 
-add_subdirectory(plugins/vmd/)
-add_subdirectory(plugins/pymol/)
+#add_subdirectory(plugins/vmd/)
+#add_subdirectory(plugins/pymol/)
 
 # swig support is a little broken
 
@@ -185,10 +185,12 @@ add_subdirectory(swig)
 
 add_subdirectory(swig)
 
+if (FREEBSD_BUILD_WITH_TESTS)
 add_subdirectory(test)
-add_subdirectory(examples)
-add_subdirectory(benchmark)
-add_subdirectory(doc)
+endif()
+#add_subdirectory(examples)
+#add_subdirectory(benchmark)
+#add_subdirectory(doc)
 
 add_custom_target(RMF DEPENDS ${RMF_BINS} ${RMF_SWIG} ${RMF_TESTS} ${RMF_VMD} RMF-decorators)
 set_property(TARGET "RMF" PROPERTY FOLDER "RMF")
