Comment 8 for bug 747152

Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

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)
    ADD_DEPENDENCIES(${target} gen_dtrace_header)

    IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
      TARGET_LINK_LIBRARIES(${target} ${CMAKE_BINARY_DIR}/probes_mysql.o)
    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.