1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

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
parent a5d9597e97
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)