--- CMakeLists.txt.orig	2025-09-13 15:22:25 UTC
+++ CMakeLists.txt
@@ -91,6 +91,11 @@ if (BSDLIKE)
             TYPE REQUIRED
         )
     endif()
+    if (CMAKE_SYSTEM_NAME MATCHES "MidnightBSD")
+        set_package_properties(Procstat PROPERTIES
+            TYPE REQUIRED
+        )
+    endif()
 endif()
 
 # For the Python bindings
