dtrace in cmake

1. ignore generated dtrace files
2. don't rewrite probes_mysql_nodtrace.h in-place
This commit is contained in:
Sergei Golubchik 2016-02-14 22:16:50 +01:00
commit 95740bc5c5
3 changed files with 6 additions and 0 deletions

View file

@ -86,6 +86,9 @@ IF(ENABLE_DTRACE)
${CMAKE_BINARY_DIR}/include/probes_mysql_dtrace.h
${CMAKE_BINARY_DIR}/include/probes_mysql_nodtrace.h
)
ELSE()
CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/include/probes_mysql_nodtrace.h.in
${CMAKE_BINARY_DIR}/include/probes_mysql_nodtrace.h COPYONLY)
ENDIF()
FUNCTION(DTRACE_INSTRUMENT target)