Squashed 'libs/CommService/' content from commit 7ccc0fc
git-subtree-dir: libs/CommService git-subtree-split: 7ccc0fce88bbc5969df060058cf0fb57abe3bcf9
This commit is contained in:
25
libs/libbattle-com/cmake/Modules/FindValgrind.cmake
Normal file
25
libs/libbattle-com/cmake/Modules/FindValgrind.cmake
Normal file
@@ -0,0 +1,25 @@
|
||||
# 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.
|
||||
#
|
||||
# NOTE: Copied from the opencog project, where it is distributed under the
|
||||
# terms of the New BSD License.
|
||||
|
||||
message(STATUS "Valgrind Prefix: ${VALGRIND_PREFIX}")
|
||||
|
||||
find_path(VALGRIND_INCLUDE_DIR valgrind/memcheck.h
|
||||
/usr/include /usr/local/include ${VALGRIND_PREFIX}/include)
|
||||
find_program(VALGRIND_PROGRAM NAMES valgrind PATH
|
||||
/usr/bin /usr/local/bin ${VALGRIND_PREFIX}/bin)
|
||||
|
||||
find_package_handle_standard_args(VALGRIND DEFAULT_MSG
|
||||
VALGRIND_INCLUDE_DIR
|
||||
VALGRIND_PROGRAM)
|
||||
|
||||
mark_as_advanced(VALGRIND_INCLUDE_DIR VALGRIND_PROGRAM)
|
||||
Reference in New Issue
Block a user