mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 23:04:20 +01:00
3d01baeed8
git-svn-id: file:///svn/toku/tokudb@45358 c7de825b-a66e-492c-adef-691d508d4ae1
18 lines
589 B
CMake
18 lines
589 B
CMake
# 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)
|