However, if -DENABLE_DTRACE=ON is passed and dtrace is not
present on the system (not systemtap but dtrace itself) then it
fails at much later stage than at cmake stage.
This is because, DTRACE_INSTRUMENT (called by plugin.cmake and
others), calls this
However, if -DENABLE_DTRACE=ON is passed and dtrace is not
present on the system (not systemtap but dtrace itself) then it
fails at much later stage than at cmake stage.
This is because, DTRACE_INSTRUMENT (called by plugin.cmake and
others), calls this
IF(ENABLE_DTRACE) DEPENDENCIES( ${target} gen_dtrace_header)
ADD_
IF( CMAKE_SYSTEM_ NAME MATCHES "Linux") LINK_LIBRARIES( ${target} ${CMAKE_ BINARY_ DIR}/probes_ mysql.o)
TARGET_
ENDIF()
However, CHECK_DTRACE() doesn't set ENABLE_DTRACE to OFF if
dtrace is not found, so it fails at link time than at cmake time.