--- Source/bmalloc/CMakeLists.txt.orig 2020-08-12 19:17:57.000000000 +1000 +++ Source/bmalloc/CMakeLists.txt 2020-10-18 14:16:36.000000000 +1100 @@ -145,6 +145,15 @@ ${CMAKE_DL_LIBS} ) +if (CMAKE_SYSTEM_NAME MATCHES "BSDSUniX") + list(APPEND bmalloc_LIBRARIES sysinfo) +endif () + +if (CMAKE_SYSTEM_NAME MATCHES "FreeBSD" AND CMAKE_HOST_SYSTEM_VERSION MATCHES "9.3") + list(APPEND bmalloc_LIBRARIES sysinfo) +endif () + + set(bmalloc_INTERFACE_LIBRARIES bmalloc) set(bmalloc_INTERFACE_INCLUDE_DIRECTORIES ${bmalloc_FRAMEWORK_HEADERS_DIR}) set(bmalloc_INTERFACE_DEPENDENCIES bmalloc_CopyHeaders)