--- cmake/dtrace.cmake.orig 2020-12-10 13:01:55.000000000 +1000 +++ cmake/dtrace.cmake 2021-12-07 12:56:25.169273000 +1000 @@ -26,7 +26,7 @@ MARK_AS_ADVANCED(DTRACE) # On FreeBSD, dtrace does not handle userland tracing yet - IF(DTRACE AND NOT CMAKE_SYSTEM_NAME MATCHES "FreeBSD") + IF(DTRACE AND NOT CMAKE_SYSTEM_NAME MATCHES "FreeBSD" AND NOT CMAKE_SYSTEM_NAME MATCHES "BSDSUniX") SET(ENABLE_DTRACE ON CACHE BOOL "Enable dtrace") ENDIF() SET(HAVE_DTRACE ${ENABLE_DTRACE}) @@ -35,6 +35,7 @@ OUTPUT_VARIABLE out) IF(out MATCHES "Sun D" OR out MATCHES "Oracle D") IF(NOT CMAKE_SYSTEM_NAME MATCHES "FreeBSD" AND + NOT CMAKE_SYSTEM_NAME MATCHES "BSDSUniX" AND NOT CMAKE_SYSTEM_NAME MATCHES "Darwin") SET(HAVE_REAL_DTRACE_INSTRUMENTING ON CACHE BOOL "Real DTrace detected") ENDIF()