diff options
Diffstat (limited to 'storage/tokudb/PerconaFT/cmake_modules/FindValgrind.cmake')
-rw-r--r-- | storage/tokudb/PerconaFT/cmake_modules/FindValgrind.cmake | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/storage/tokudb/PerconaFT/cmake_modules/FindValgrind.cmake b/storage/tokudb/PerconaFT/cmake_modules/FindValgrind.cmake new file mode 100644 index 00000000..73841723 --- /dev/null +++ b/storage/tokudb/PerconaFT/cmake_modules/FindValgrind.cmake @@ -0,0 +1,18 @@ +# Find Valgrind. +# +# This module defines: +# VALGRIND_INCLUDE_DIR, where to find valgrind/memcheck.h, etc. +# VALGRIND_PROGRAM, the valgrind executable. +# VALGRIND_FOUND, If false, do not try to use valgrind. +# +# If you have valgrind installed in a non-standard place, you can define +# VALGRIND_PREFIX to tell cmake where it is. + +find_path(VALGRIND_INCLUDE_DIR valgrind/memcheck.h) +find_program(VALGRIND_PROGRAM NAMES valgrind) + +find_package_handle_standard_args(Valgrind DEFAULT_MSG + VALGRIND_INCLUDE_DIR + VALGRIND_PROGRAM) + +mark_as_advanced(VALGRIND_INCLUDE_DIR VALGRIND_PROGRAM) |